What's the best way to do authentication on a remote printer? #950
Replies: 1 comment
-
Method 3: send CUPS-Authenticate-Job IPP request |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
In our use case, we need to add a network printer using lpadmin (requiring Basic/Digest authentication), and then print through the CUPS API. However, we have not found a suitable authentication method in the existing CUPS API.
After studying the related code of CUPS, I learned that the IPP backend supports two methods for passing username and password:
Method 1: User:password included in the device URI.
Method 2: Obtain AUTH_USERNAME and AUTH_PASSWORD from environment variables.
Using Method 2, adding [ATTR text "auth-info" USERNAME, PASSWORD] in the ".test" file for ipptool successfully conducted printing.
The above two methods are not clearly documented, but no more suitable authentication methods could be found.
My questions:
· Does Method 2 mentioned above pose any security risks? Is it in line with the expectations of CUPS developers?
· The existing "cupsStartDestDocument" does not include "auth-info" in the request. Is there a possibility that "auth-info" will be added in the future?
Beta Was this translation helpful? Give feedback.
All reactions