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

Using username and password in uri re-applies printer resource #71

Open
Outtay opened this issue May 11, 2017 · 2 comments
Open

Using username and password in uri re-applies printer resource #71

Outtay opened this issue May 11, 2017 · 2 comments

Comments

@Outtay
Copy link

Outtay commented May 11, 2017

I need to add a username and password to the uri for a samba printer. Problem with that is that lpstat -v (naturally) won't return a uri with username and password in them, which is probably why the resource of my printer is always re-applied. Is there any way to solve that?

Thanks in advance!

@mosen
Copy link
Owner

mosen commented May 16, 2017

Is there any flag to lpstat that would show the credentials? The only other option is to make them options which would only supply the username and password when the queue was created.

@Outtay
Copy link
Author

Outtay commented May 16, 2017

Unfortunately no, there's no flag.
Making it an option to supply it only on creation is the only way I can think of as well. Would be nice if there were the option in lpoptions or in the printers.conf itself, but unfortunately not.
Edit: As a workaround I currently just change the uri after the printer is applied with stdlib and add the username and password that way.

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