diff options
author | Greg Hudson <ghudson@mit.edu> | 2012-05-10 17:34:01 +0000 |
---|---|---|
committer | Tom Yu <tlyu@mit.edu> | 2012-05-15 18:26:25 -0400 |
commit | 3d4f8431d5d34e0ffaaeee0bfe55c552de3ebdfe (patch) | |
tree | f696950c6c69e9da892d9148db9a2d89086c486e /src/lib | |
parent | 7a9927270463a213f4af84462743315dcffd71d1 (diff) | |
download | krb5-3d4f8431d5d34e0ffaaeee0bfe55c552de3ebdfe.zip krb5-3d4f8431d5d34e0ffaaeee0bfe55c552de3ebdfe.tar.gz krb5-3d4f8431d5d34e0ffaaeee0bfe55c552de3ebdfe.tar.bz2 |
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
Diffstat (limited to 'src/lib')
-rw-r--r-- | 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. */ |