[prev in list] [next in list] [prev in thread] [next in thread] 

List:       cups-commit
Subject:    [cups.commit] [CUPS] r9656 - trunk/backend
From:       cups-dev () easysw ! com
Date:       2011-03-29 0:00:05
Message-ID: 10427-cups.commit () news ! easysw ! com
[Download RAW message or body]

Author: mike
Date: 2011-03-28 17:00:04 -0700 (Mon, 28 Mar 2011)
New Revision: 9656
Log:
One more change for Kerberos.


Modified:
   trunk/backend/ipp.c

Modified: trunk/backend/ipp.c
===================================================================
--- trunk/backend/ipp.c	2011-03-28 23:52:32 UTC (rev 9655)
+++ trunk/backend/ipp.c	2011-03-29 00:00:04 UTC (rev 9656)
@@ -512,7 +512,17 @@
     password = getenv("AUTH_PASSWORD");
   }
 
+#ifdef HAVE_GSSAPI
  /*
+  * For Kerberos, become the printing user (if we can) to get the credentials
+  * that way.
+  */
+
+  if (!getuid() && (value = getenv("AUTH_UID")) != NULL)
+    seteuid(atoi(value));
+#endif /* HAVE_GSSAPI */
+
+ /*
   * Try finding the remote server...
   */
 

_______________________________________________
cups-commit mailing list
cups-commit@easysw.com
http://lists.easysw.com/mailman/listinfo/cups-commit
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic