1
0
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:
Andrew Bartlett 2006-09-01 04:34:21 +00:00 committed by Gerald (Jerry) Carter
parent 93413f8450
commit befac43f59
2 changed files with 4 additions and 0 deletions

View File

@ -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;
}

View File

@ -5,5 +5,6 @@ dn: ${BASEDN}
objectClass: top
objectClass: domain
objectClass: domainDNS
${EXTENSIBLEOBJECT}
dc: ${RDN_DC}