[cups-devel] [UNKN] STR #4371: auth-info-required - ipp backend

vesely at gjh.sk vesely at gjh.sk
Thu Feb 20 05:08:07 PST 2014


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

DO NOT REPLY TO THIS MESSAGE.  INSTEAD, POST ANY RESPONSES TO THE LINK BELOW.

[STR New]

I don't want gui authentification dialog to show when I specify
username:password@ in the printer uri in printers.conf.

However in ipp.c line 2544 password_cb 
auth_info_required is set to "username,password" unconditionally.

This leads to setting auth-info-required printer attribute and 
gui shows dialog next time. Even if this attribute is changed 
manually to "none", after each authentification it is reset back to
"username,password". This is very annoying. 

Commenting this line out solved the problem. While I understand a
motivation behind putting it there, it is not wise to assume that
credentials come from gui.

Other possible interpretation is that backend is right about setting
auth-info-required="username,password", but gui needs to check if the
credentials are already provided in uri and do not ask the user in that
case.

For me the fixing the backend was easied than figuring out the behaviour of
(possibly many different) guis.

Link: https://www.cups.org/str.php?L4371
Version: 1.5.3
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.14 (GNU/Linux)
Comment: GPGTools - https://gpgtools.org

iQIcBAEBCgAGBQJTBf43AAoJENujp6sI12Ij4lQP/2Vb7fVtGig9YrxXeawc5OnZ
38vRyUx1kUkvygqv5TjhSfL5Srdr5pFMFMlnV1zA68wQN80820Hi2YJhTQZmBted
3p7wsAzvEoPOAGzqgv2C9NKkwKPVS+8vJvwt0W6FxThW8+yxts3YamJ6UDAu9Wkh
K2yChzSlxZ2Jq9Q3DxVAfe8sUOa4f4X+8FjGP6ItPZ86qHiP7BDLi9Sb7SMuQoYv
1pHYaLuQycOfC7iXlxYn7G2/7WdWIAIXw24TQcQtwl1lnvqnLQadA4IVQHr6lTPc
t5yT2qL9t2AKOdA3zznbmutiDjIZwfvphM/zCJl5w5niN4QLlKri4HV6SoW1KoEq
Ncf4lhP84pq5bIxog+QIUDRKlc6pRhpkKAPdL2EoV/8jq3mNLUmpQZof9i6FQy/X
aj/Sct4KQ3SV5rQZr6NwQlqKzSG3/Wip/Pi9U5Blwbd4e+AZMw+kMv6E7WKK5hQ8
P+cBzRxmk7XxaRBRLylwPGHcb9v6ly576BUqfdd1I8je1yAMblG5O2pnummEt4UR
OatqJ0DB/bktKhnZhWuIHBXz0gPODJP4BNxLCXuQNW/BSNSvH1FFMX7ch4y665K6
o2JOS9LCpBvQH0Y6IbyYcZVV7BJ88Kl5qPrKNMOaFJ0cPTKEglnU9uksvB3rxT95
YLi3pAXTA7seR8hUGyTP
=N9HX
-----END PGP SIGNATURE-----




More information about the cups mailing list