svn rev #25860: trunk/src/lib/krb5/krb/

ghudson@MIT.EDU ghudson at MIT.EDU
Thu May 10 13:34:01 EDT 2012


http://src.mit.edu/fisheye/changelog/krb5/?cs=25860
Commit By: ghudson
Log Message:
Make password change work without default realm

This fix is not very general or clean, but is suitable for backporting
because it is minimally invasive.  A more comprehensive fix will
follow.

ticket: 7127
target_version: 1.10.2
tags: pullup


Changed Files:
U   trunk/src/lib/krb5/krb/get_in_tkt.c
Modified: trunk/src/lib/krb5/krb/get_in_tkt.c
===================================================================
--- trunk/src/lib/krb5/krb/get_in_tkt.c	2012-05-09 19:27:49 UTC (rev 25859)
+++ trunk/src/lib/krb5/krb/get_in_tkt.c	2012-05-10 17:34:01 UTC (rev 25860)
@@ -446,6 +446,11 @@
     *server = NULL;
 
     if (in_tkt_service) {
+        /* Minimally invasive fix for inability to change password with no
+         * default realm, for backporting. */
+        if (strcmp(in_tkt_service, "kadmin/changepw") == 0)
+            in_tkt_service = "kadmin/changepw@";
+
         /* this is ugly, because so are the data structures involved.  I'm
            in the library, so I'm going to manipulate the data structures
            directly, otherwise, it will be worse. */



More information about the cvs-krb5 mailing list