summaryrefslogtreecommitdiff
path: root/source3/smbadduser.in
diff options
context:
space:
mode:
authorMike Sweet <msweet@apple.com>2008-04-21 09:16:01 -0700
committerJames Peach <jpeach@apple.com>2008-04-21 09:16:01 -0700
commit7e166858c3c2094372f90239adba25711c4739a5 (patch)
tree0dd66087e1de117e3c9bca978c85c0e66167dd30 /source3/smbadduser.in
parent154f4837b3169ddf6c61f87b9d28c257f69d35bf (diff)
downloadsamba-7e166858c3c2094372f90239adba25711c4739a5.tar.gz
samba-7e166858c3c2094372f90239adba25711c4739a5.tar.bz2
samba-7e166858c3c2094372f90239adba25711c4739a5.zip
smbspool: fix Kerberos support for CUPS 1.3.
To summarize the changes, the patches remove the old (probably non- working) Kerberos support code which is unnecessary with CUPS 1.3 and adds some checks on the NT status we get back to see whether the connection error is related to authentication. If so, we send the ATTR: message to tell CUPS we need a username and password and return exit code 2 so cupsd will do the right thing. AUTH_USERNAME, AUTH_PASSWORD, and KRB5CCNAME are set and supported by CUPS 1.3. The new exit code is supported by CUPS 1.2.x and 1.3, and it treated as a general failure in CUPS 1.1. The ATTR: message is only supported by CUPS 1.3, while CUPS 1.2 will assume the "username,password" value we are setting. The current code only uses the AUTH_* env vars if they are set. If not, we fall back to the previous behavior. I really can't tell whether the Kerberos code that was in there would work at all. It did not work for Mac OS X which is why I dropped it. (This used to be commit 8c12c5cea01d9b801fe80c2a87b8139c488a62a5)
Diffstat (limited to 'source3/smbadduser.in')
0 files changed, 0 insertions, 0 deletions