mirror of
https://github.com/samba-team/samba.git
synced 2025-11-13 08:23:49 +03:00
r24760: Ensure we base64 encode any password being put into LDIF, to avoid
provision failures when some of the random password values are illigal LDIF. Andrew Bartlett
This commit is contained in:
committed by
Gerald (Jerry) Carter
parent
e6f571227e
commit
876003f6c6
@@ -449,6 +449,8 @@ function setup_name_mappings(info, ldb)
|
||||
|
||||
function provision_fix_subobj(subobj, paths)
|
||||
{
|
||||
var ldb = ldb_init();
|
||||
|
||||
subobj.REALM = strupper(subobj.REALM);
|
||||
subobj.HOSTNAME = strlower(subobj.HOSTNAME);
|
||||
subobj.DOMAIN = strupper(subobj.DOMAIN);
|
||||
@@ -465,6 +467,11 @@ function provision_fix_subobj(subobj, paths)
|
||||
subobj.CONFIGDN = "CN=Configuration," + subobj.ROOTDN;
|
||||
subobj.SCHEMADN = "CN=Schema," + subobj.CONFIGDN;
|
||||
|
||||
subobj.MACHINEPASS_B64 = ldb.encode(subobj.MACHINEPASS);
|
||||
subobj.KRBTGTPASS_B64 = ldb.encode(subobj.KRBTGTPASS);
|
||||
subobj.ADMINPASS_B64 = ldb.encode(subobj.ADMINPASS);
|
||||
subobj.DNSPASS_B64 = ldb.encode(subobj.DNSPASS);
|
||||
|
||||
var rdns = split(",", subobj.DOMAINDN);
|
||||
subobj.RDN_DC = substr(rdns[0], strlen("DC="));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user