From edda534454b1c5a6d30f1b99baf502d3990f99dd Mon Sep 17 00:00:00 2001 From: =?utf8?q?G=C3=BCnther=20Deschner?= Date: Fri, 26 Sep 2014 21:06:38 +0200 Subject: [PATCH] s4-auth/kerberos: fix salting principal, make sure hostname is lowercase. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Found at MS interop event while working on AES kerberos key support. Guenther Signed-off-by: Günther Deschner Reviewed-by: Andrew Bartlett Autobuild-User(master): Günther Deschner Autobuild-Date(master): Fri Sep 26 23:37:09 CEST 2014 on sn-devel-104 --- source4/auth/kerberos/srv_keytab.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.34.1