You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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!
The text was updated successfully, but these errors were encountered:
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.
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.
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!
The text was updated successfully, but these errors were encountered: