[26550] in CVS-changelog-for-Kerberos-V5

home help back first fref pref prev next nref lref last post

krb5 commit [krb5-1.10]: Make password change work without default

daemon@ATHENA.MIT.EDU (Tom Yu)
Tue May 15 18:27:21 2012

Date: Tue, 15 May 2012 18:27:14 -0400
From: Tom Yu <tlyu@mit.edu>
Message-Id: <201205152227.q4FMREak007378@drugstore.mit.edu>
To: cvs-krb5@mit.edu
Reply-To: krbdev@mit.edu
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Errors-To: cvs-krb5-bounces@mit.edu

https://github.com/krb5/krb5/commit/3d4f8431d5d34e0ffaaeee0bfe55c552de3ebdfe
commit 3d4f8431d5d34e0ffaaeee0bfe55c552de3ebdfe
Author: Greg Hudson <ghudson@mit.edu>
Date:   Thu May 10 17:34:01 2012 +0000

    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.
    
    (cherry picked from commit b9ff95a51ef11742abc9687a70b6d8324eda6803)
    
    ticket: 7127
    version_fixed: 1.10.2
    status: resolved

 src/lib/krb5/krb/get_in_tkt.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/src/lib/krb5/krb/get_in_tkt.c b/src/lib/krb5/krb/get_in_tkt.c
index 2dd3947..11782ad 100644
--- a/src/lib/krb5/krb/get_in_tkt.c
+++ b/src/lib/krb5/krb/get_in_tkt.c
@@ -465,6 +465,11 @@ build_in_tkt_name(krb5_context context,
     *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. */
_______________________________________________
cvs-krb5 mailing list
cvs-krb5@mit.edu
https://mailman.mit.edu/mailman/listinfo/cvs-krb5

home help back first fref pref prev next nref lref last post