You are not logged in.
Pages: 1
Hi all,
I am printing to samba-shared printers and it works great.
Is it possible to pass my username and password automatically or save my credentials in the gnome keyring so I don't have to authenticate each time I want to print?
Thanks,
Walter
Offline
Yes, code them like this (working from memory, check the docs)
smb://username:password@server/printername
(Just checked and it is correct. See this Article
Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way
Offline
Hi,
Thanks for your reply, but that looks to me like I have to manually set the username and password. I tried passing the username and password, but it gets reset back to a connection URI without a username and password:
I want to configure the printer so that any user can print without needing an additional configuration. Is it possible to do that?
Thanks,
Walter
Offline
I think I know what is happening. I assume you set the printer address in CUPS (using the web page, I presume) with a user name and password embedded. Then, you went and checked the address and the user name and password had disappeared.
If so, did you try to print at that point? It has been my experience that it works, but that CUPS does not display the username and password on the web page.
I've an HP1020 attached to my wife's XP box. My Arch laptop uses my XP credentials, passed using the method I have described here, to talk to that printer. If I change the printer using the web interface, I must remember to reenter the credentials or they are lost. (example: set the printer up, it works, I decide I don't want A4 paper by default, I change the printer, forget to add the credentials back to the displayed printer address, It drops the credentials and posts a challenge when I try to print. Go, back, fix address, no more challenge for credentials)
Edit: fixed past imperfect grammar
Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way
Offline
Yes, that is pretty much what I was noticing.
Instead of hard-coding the username and password, I want it to be a variable so if I log in as another user, those credentials are passed to the printer.
Can your credentials be stored in a keyring or something?
Is that possible?
Walter
Offline
Pages: 1