1
0
mirror of https://github.com/samba-team/samba.git synced 2025-11-02 20:23:50 +03:00

r8677: The first part of the domain name may not be equal to the netbios domain name.

Remove the use of flatname from the main domain object, we no longer
reference it.

Andrew Bartlett
This commit is contained in:
Andrew Bartlett
2005-07-21 11:28:24 +00:00
committed by Gerald (Jerry) Carter
parent 3a49626ae1
commit 2303e24be7
2 changed files with 4 additions and 2 deletions

View File

@@ -268,6 +268,7 @@ function provision_guess()
var subobj = new Object();
var nss = nss_init();
var lp = loadparm_init();
var rdn_list;
random_init(local);
subobj.REALM = lp.get("realm");
@@ -302,6 +303,8 @@ function provision_guess()
strlower(subobj.HOSTNAME),
subobj.DNSDOMAIN);
subobj.BASEDN = "DC=" + join(",DC=", split(".", subobj.REALM));
rdn_list = split(".", subobj.REALM);
subobj.RDN_DC = rdn_list[0];
return subobj;
}

View File

@@ -5,9 +5,8 @@ dn: ${BASEDN}
objectClass: top
objectClass: domain
objectClass: domainDNS
flatname: ${DOMAIN}
dnsDomain: ${DNSDOMAIN}
dc: ${DOMAIN}
dc: ${RDN_DC}
objectGUID: ${DOMAINGUID}
creationTime: ${NTTIME}
forceLogoff: 0x8000000000000000