summaryrefslogtreecommitdiff
path: root/source4/heimdal
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2006-11-08 01:43:23 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:25:21 -0500
commite10791a36451da82906cd7cec66c7a54802353b5 (patch)
tree98a060e31541659ddc658ff9c95390e783960341 /source4/heimdal
parentc4ee1af3fb835612360f9cc7a6fa1ead17b64340 (diff)
downloadsamba-e10791a36451da82906cd7cec66c7a54802353b5.tar.gz
samba-e10791a36451da82906cd7cec66c7a54802353b5.tar.bz2
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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/heimdal/lib/hdb/keytab.c b/source4/heimdal/lib/hdb/keytab.c
index 8f473a68a4..7ae3ec3150 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;