Re: [cups-devel] [UNKN] STR #4764: allow setting of default user name from per instance options
Vincent Danjean <[email protected]>
| Newsgroups | gmane.comp.printing.cups.devel |
|---|---|
| Message-ID | <[email protected]> |
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA512 DO NOT REPLY TO THIS MESSAGE. INSTEAD, POST ANY RESPONSES TO THE LINK BELOW. [STR Unresolved] Argh. I really do not understand to design to allow to choose a username system-wide (/etc/client.conf) or account-wide ($HOME/.cups/client.conf) but not per queue, unless you do not consider the use-case of a computer (laptop) that connect to different environments. I tried to dig into the code, but I did not see any easy way to turn arround this problem. In my case, the backend is lpd that use the name from the second parameter of its invocation. As the backend is launched by the cups scheduler at the same time as the filters (connected by pipes), there is no way a filter can 'update' the login name for the lpd backend. The only 'trick' I can think of is that a filter add the modified username (taken from a cups option and/or a ppd field) to its output and that a wrapper lpd backend first read the name from the job that comes and invoke the real backend with the user name modified... I will perhaps try that if I fond the time to do it. But it will be specific to my usecase, not something that can be integrated upstream. Link: https://www.cups.org/str.php?L4764 Version: 2.1.2 Fix Version: None -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.14 (GNU/Linux) Comment: GPGTools - https://gpgtools.org iQIcBAEBCgAGBQJWszlVAAoJENujp6sI12IjDFIP/A+dBe3Mj+2kx5vSQ6YOaI0A xCrf+GRbt/47ePwOKhGaTBG8NgCt/UQQrAxY38Ym/pOsGzQwBz3VgX0XddXYijL3 HcJdmLaK+O6A8p0i21wENZAO5m/v2AzGhzBFNWQYO0GlC7gderen8N0Nnaw/1pEX 3gCslF+g2O3FYhYC19DmCx2+vNyDCCHeHfhJMj7YXPP19o0WTVOaE1hpzKt2vW/1 SJ/M3aB5nkpEyoXAjTvse1TxpJyQSyQ/55GlyGvbFpRr7o/biMwcdfdvKu5JgBpX ukDf3TGqsNMsYSGDoVmEf5T+4Vts5lZUnIwJ0oxsTAjT7hT/Y2G/q6+SZAaRRVVr 5SkX1zIRV0tXhQD1yazt+5IUHmnRRlqvklGiuKsZlYJEiLyHmPEx64J91gQyudXg ib4qxV20XC8g9nOh018Tq46Lba4chnYEvVp67RjAbpXlDfcMQ5hBaNXNDJapfbE/ UTVAuhHWl1ab+jZ7PHFciiPxehPkDpjD6tsQhoRNJ/mA6N0bxJvrR3YYJcAexlpH paLaKQMS4sUJ8KJs6YP9wEZ1QvLkI6Z50g+R8wPcVrqoDoOCG63Mn9FtUVhCWnrX mxc8J8vmpi1OyFG8oRZiqBA8zjzvwjowQFaxLwQrWCuqarRaxbCARZzUNQQosp3x 91dfb7UbWmQW55WJoyfy =8oXz -----END PGP SIGNATURE-----