]> git.ipfire.org Git - thirdparty/cups.git/commitdiff
Don't do Kerberos over the loopback interface.
authormike <mike@7a7537e8-13f0-0310-91df-b6672ffda945>
Tue, 9 Apr 2013 14:32:10 +0000 (14:32 +0000)
committermike <mike@7a7537e8-13f0-0310-91df-b6672ffda945>
Tue, 9 Apr 2013 14:32:10 +0000 (14:32 +0000)
git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@10939 7a7537e8-13f0-0310-91df-b6672ffda945

CHANGES-1.6.txt
scheduler/client.c

index 87813907ae4c1dce3a3b5cc9f50b6dd46cdb5b20..57a0ff5f82257099ec7802f308523c84ee294c58 100644 (file)
@@ -5,6 +5,8 @@ CHANGES IN CUPS V1.6.3
 
        - The configure script now prefers Clang over GCC.
        - Fixed a compile problem on AIX (STR #4307)
+       - The scheduler no longer tries to do Kerberos authentication over the
+         loopback interface.
        - The IPP backend could fail to pause a job for authentication
          (STR #4298)
        - Fixed a regression on the handling of auth keys on OS X if the
index 82cd23ebc3ddc8db98459482bf9b4bf3a5a993fa..3713d156fc4a484c7a318c1c8968185b052c89f2 100644 (file)
@@ -2619,7 +2619,14 @@ cupsdSendHeader(
               con->http.hostname);
 #ifdef HAVE_GSSAPI
     else if (auth_type == CUPSD_AUTH_NEGOTIATE)
+    {
+#  ifdef AF_LOCAL
+      if (_httpAddrFamily(con->http.hostaddr) == AF_LOCAL)
+        strlcpy(auth_str, "Basic realm=\"CUPS\"", sizeof(auth_str));
+      else
+#  endif /* AF_LOCAL */
       strlcpy(auth_str, "Negotiate", sizeof(auth_str));
+    }
 #endif /* HAVE_GSSAPI */
 
     if (con->best && auth_type != CUPSD_AUTH_NEGOTIATE &&