s4:provision Make our default salt match our server behaviour
authorAndrew Bartlett <abartlet@samba.org>
Mon, 21 Sep 2009 18:59:33 +0000 (11:59 -0700)
committerAndrew Bartlett <abartlet@samba.org>
Mon, 21 Sep 2009 18:59:33 +0000 (11:59 -0700)
We need to look into salting algorithms further.

Andrew Bartlett

source4/scripting/python/samba/provision.py

index 9a41709830132f05c0ffacb36e63749c00257e1d..af706d08ddffba2e364a0748215115bab8d4e225 100644 (file)
@@ -687,7 +687,7 @@ def secretsdb_self_join(secretsdb, domain,
         dnsdomain = realm.lower()
       msg["objectClass"] = ["top", "primaryDomain", "kerberosSecret"]
       msg["realm"] = realm
         dnsdomain = realm.lower()
       msg["objectClass"] = ["top", "primaryDomain", "kerberosSecret"]
       msg["realm"] = realm
-      msg["saltPrincipal"] = "host/%s.%s@%s" % (netbiosname.lower(), dnsdomain.lower(), realm.upper())
+      msg["saltPrincipal"] = "host/%s.%s@%s" % (netbiosname, dnsdomain.lower(), realm.upper())
       msg["msDS-KeyVersionNumber"] = [str(key_version_number)]
       msg["privateKeytab"] = ["secrets.keytab"];
 
       msg["msDS-KeyVersionNumber"] = [str(key_version_number)]
       msg["privateKeytab"] = ["secrets.keytab"];