summaryrefslogtreecommitdiff
path: root/source4/auth/kerberos
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2014-09-26 21:06:38 +0200
committerGünther Deschner <gd@samba.org>2014-09-26 23:37:09 +0200
commitedda534454b1c5a6d30f1b99baf502d3990f99dd (patch)
treee83bb4050dc8e0cc5cd4a8ae186d64cb660e65ab /source4/auth/kerberos
parentf64e76dad4dbd10e07a7950ac81deeaf7332c26a (diff)
downloadsamba-edda534454b1c5a6d30f1b99baf502d3990f99dd.tar.gz
s4-auth/kerberos: fix salting principal, make sure hostname is lowercase.
Found at MS interop event while working on AES kerberos key support. Guenther Signed-off-by: Günther Deschner <gd@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Autobuild-User(master): Günther Deschner <gd@samba.org> Autobuild-Date(master): Fri Sep 26 23:37:09 CEST 2014 on sn-devel-104
Diffstat (limited to 'source4/auth/kerberos')
-rw-r--r--source4/auth/kerberos/srv_keytab.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/auth/kerberos/srv_keytab.c b/source4/auth/kerberos/srv_keytab.c
index d81e27de3a1..3baba1427e8 100644
--- a/source4/auth/kerberos/srv_keytab.c
+++ b/source4/auth/kerberos/srv_keytab.c
@@ -143,7 +143,7 @@ static krb5_error_code salt_principal(TALLOC_CTX *parent_ctx,
return ENOMEM;
}
- machine_username = talloc_strdup(tmp_ctx, samAccountName);
+ machine_username = strlower_talloc(tmp_ctx, samAccountName);
if (!machine_username) {
*error_string = "Cannot duplicate samAccountName";
talloc_free(tmp_ctx);