summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGreg Hudson <ghudson@mit.edu>2012-05-10 17:34:01 +0000
committerGreg Hudson <ghudson@mit.edu>2012-05-10 17:34:01 +0000
commitb9ff95a51ef11742abc9687a70b6d8324eda6803 (patch)
tree38f4dc3b7c6ac1500b6285579c4d88f48593c10c /src
parent4f7dbd528914fe607e5ad820dfbb824c53ae7e97 (diff)
downloadkrb5-b9ff95a51ef11742abc9687a70b6d8324eda6803.tar.gz
krb5-b9ff95a51ef11742abc9687a70b6d8324eda6803.tar.xz
krb5-b9ff95a51ef11742abc9687a70b6d8324eda6803.zip
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 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@25860 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src')
-rw-r--r--src/lib/krb5/krb/get_in_tkt.c5
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 4c634f0dc..b552d126d 100644
--- a/src/lib/krb5/krb/get_in_tkt.c
+++ b/src/lib/krb5/krb/get_in_tkt.c
@@ -446,6 +446,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. */