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

Connect to cups server (which has basic authentication enabled) using pycups library #6157

Open
rival123 opened this issue Nov 10, 2023 · 0 comments

Comments

@rival123
Copy link

rival123 commented Nov 10, 2023

I am using cups version 2.2.10. Cups server is Basic Authentication enabled. And I am using pycups = 2.0.1 as a client library to connect to cups server. But I am unable to make successful connection using pycups because it doesn't provide support for adding password.
We can set server, port and user but not able to find how we can set Password.

cups.setServer(self.configuration.cups_server)
cups.setPort(self.configuration.cups_port)
cups.setUser(self.configuration.cups_user)

I also tried adding callback but that also doesn't seem to work-

def password(self):
return self.configuration.cups_user
cups.setPasswordCB(self.password)

Getting Unauthorized error every time. Is there any way I can make a connection using pycups when cups server has Basic Authentication Enabled?

#5288 (comment) - what is resolution for this issue

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

1 participant