]> git.ipfire.org Git - thirdparty/cups.git/commitdiff
Fix GSS authentication bug.
authormike <mike@7a7537e8-13f0-0310-91df-b6672ffda945>
Fri, 20 May 2011 18:22:33 +0000 (18:22 +0000)
committermike <mike@7a7537e8-13f0-0310-91df-b6672ffda945>
Fri, 20 May 2011 18:22:33 +0000 (18:22 +0000)
git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@9800 7a7537e8-13f0-0310-91df-b6672ffda945

cups/auth.c

index cbfa1cd757a70e5936123a918912c47b48b6b03c..608c40c2b3f14489f8c72bcc2aef8ed9b122ab5c 100644 (file)
@@ -361,7 +361,7 @@ _cupsSetNegotiateAuthString(
 
     snprintf(prompt, sizeof(prompt),
              _cupsLangString(cg->lang_default, _("Password for %s on %s? ")),
-            cupsUser(), http->gssname);
+            cupsUser(), http->gsshost);
 
     if ((password = cupsGetPassword2(prompt, http, method, resource)) == NULL)
       return (-1);
@@ -373,7 +373,7 @@ _cupsSetNegotiateAuthString(
     username = cupsUser();
     if (!strchr(username, '@'))
     {
-      snprintf(userbuf, sizeof(userbuf), "%s@%s", username, http->gssname);
+      snprintf(userbuf, sizeof(userbuf), "%s@%s", username, http->gsshost);
       username = userbuf;
     }