mirror of
https://github.com/samba-team/samba.git
synced 2024-12-23 17:34:34 +03:00
r17982: One final hack...
When against a real, schema-checking LDAP backend, we need extensibleObject on the baseDN entry (as entryUUID isn't run for creating this basic ldif) output.
This commit is contained in:
parent
93413f8450
commit
befac43f59
@ -565,6 +565,8 @@ function provision_ldapbase(subobj, message, paths)
|
||||
{
|
||||
message("Setting up LDAP base entry: " + subobj.BASEDN + " \n");
|
||||
var rdns = split(",", subobj.BASEDN);
|
||||
subobj.EXTENSIBLEOBJECT = "objectClass: extensibleObject";
|
||||
|
||||
subobj.RDN_DC = substr(rdns[0], strlen("DC="));
|
||||
|
||||
setup_file("provision_basedn.ldif",
|
||||
@ -619,6 +621,7 @@ function provision_guess()
|
||||
rdn_list = split(".", subobj.DNSDOMAIN);
|
||||
subobj.BASEDN = "DC=" + join(",DC=", rdn_list);
|
||||
subobj.LDAPBACKEND = "users.ldb";
|
||||
subobj.EXTENSIBLEOBJECT = "# no objectClass: extensibleObject for local ldb";
|
||||
return subobj;
|
||||
}
|
||||
|
||||
|
@ -5,5 +5,6 @@ dn: ${BASEDN}
|
||||
objectClass: top
|
||||
objectClass: domain
|
||||
objectClass: domainDNS
|
||||
${EXTENSIBLEOBJECT}
|
||||
dc: ${RDN_DC}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user