diff options
author | Andrew Bartlett <abartlet@samba.org> | 2006-11-08 01:43:23 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 14:25:21 -0500 |
commit | e10791a36451da82906cd7cec66c7a54802353b5 (patch) | |
tree | 98a060e31541659ddc658ff9c95390e783960341 /source4/heimdal | |
parent | c4ee1af3fb835612360f9cc7a6fa1ead17b64340 (diff) | |
download | samba-e10791a36451da82906cd7cec66c7a54802353b5.tar.gz samba-e10791a36451da82906cd7cec66c7a54802353b5.tar.xz samba-e10791a36451da82906cd7cec66c7a54802353b5.zip |
r19632: This got missed in the heimdal merge. Without this, we don't keep the
full database name. The existing code (needed for when we use the HDB
as a keytab, such as for the kpasswd service) only works for HDB
keytabs not prefixed with a type.
Andrew Bartlett
(This used to be commit 12dc157daea4a20200f910d8e71c49670e35ef50)
Diffstat (limited to 'source4/heimdal')
-rw-r--r-- | source4/heimdal/lib/hdb/keytab.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/heimdal/lib/hdb/keytab.c b/source4/heimdal/lib/hdb/keytab.c index 8f473a68a41..7ae3ec31503 100644 --- a/source4/heimdal/lib/hdb/keytab.c +++ b/source4/heimdal/lib/hdb/keytab.c @@ -59,7 +59,7 @@ hdb_resolve(krb5_context context, const char *name, krb5_keytab id) return ENOMEM; } db = name; - mkey = strchr(name, ':'); + mkey = strrchr(name, ':'); if(mkey == NULL || mkey[1] == '\0') { if(*name == '\0') d->dbname = NULL; |