s4-auth/kerberos: fix salting principal, make sure hostname is lowercase.
authorGünther Deschner <gd@samba.org>
Fri, 26 Sep 2014 19:06:38 +0000 (21:06 +0200)
committerGünther Deschner <gd@samba.org>
Fri, 26 Sep 2014 21:37:09 +0000 (23:37 +0200)
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

source4/auth/kerberos/srv_keytab.c

index d81e27de3a14a59ac1647ab23a10fd77093f1cd7..3baba1427e8ccc186a87546c41af7c4f9fa15597 100644 (file)
@@ -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);