summaryrefslogtreecommitdiff
path: root/source4/kdc
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2015-03-12 13:29:56 +1300
committerGünther Deschner <gd@samba.org>2015-03-12 17:13:42 +0100
commit7f5740f34226301e2172c7e2024fd8c6c4ededf5 (patch)
tree49073bd43b57cf63889f4d9d4d949086d0affbc6 /source4/kdc
parent7ed24924d2917556a03c51eadcb65b3e3c1e8af6 (diff)
downloadsamba-7f5740f34226301e2172c7e2024fd8c6c4ededf5.tar.gz
kdc: Ensure we cope with a samAccountName with a space in it
Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Guenther Deschner <gd@samba.org>
Diffstat (limited to 'source4/kdc')
-rw-r--r--source4/kdc/db-glue.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/source4/kdc/db-glue.c b/source4/kdc/db-glue.c
index 0bc907ef609..8f2b361b571 100644
--- a/source4/kdc/db-glue.c
+++ b/source4/kdc/db-glue.c
@@ -1601,7 +1601,10 @@ static krb5_error_code samba_kdc_lookup_server(krb5_context context,
/* TODO: Check if it is our realm, otherwise give referral */
- ret = krb5_unparse_name_flags(context, principal, KRB5_PRINCIPAL_UNPARSE_NO_REALM, &short_princ);
+ ret = krb5_unparse_name_flags(context, principal,
+ KRB5_PRINCIPAL_UNPARSE_NO_REALM |
+ KRB5_PRINCIPAL_UNPARSE_DISPLAY,
+ &short_princ);
if (ret != 0) {
krb5_set_error_message(context, ret, "samba_kdc_lookup_principal: could not parse principal");