Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Password protected printer not reachable #179

Open
Sasso0101 opened this issue May 23, 2020 · 1 comment
Open

Password protected printer not reachable #179

Sasso0101 opened this issue May 23, 2020 · 1 comment

Comments

@Sasso0101
Copy link

Sasso0101 commented May 23, 2020

Hi! I have a password protected CUPS server (since it's exposed to the internet) as follows:
<Location /> AuthType Default Require user @SYSTEM Order allow,deny Allow all </Location>
Printing from Windows and Linux works just fine but when I try to manually add the printer through Android CUPS Print it just adds it to the printer list without asking for any username or password. Also, when I select the printer and try to print from it the Android print window says that the printer is not available right now (I think something times out because it takes a few seconds before the message appears).
I haven't seen any errors in the CUPS logs (the log level is set to error: LogLevel error). I'm running the app on Android 10, if that makes any difference. The connection to the CUPS server is https, with a valid certificate.
Thanks for the your time and patience spent to make this app and of course I would be really happy to help you with the troubleshooting. :)

@pholcroft
Copy link

pholcroft commented Jun 1, 2020

I came here to post this exact same issue. I have set mine up behind HAProxy with Basic HTTP Authentication. It works fine in Windows 10 as you say, just asking for the username and password, but on Android I have exactly the same experience as you. I don't see how else we can allow it to have access from the internet while being secure unless I am missing some other method?

Edit: I've had a look at the code and it's clear this feature is in there, but for some reason it's not working...
BasicAuthActivity.kt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants