[Samba] RFC2307 on a Samba DC - HowTo

Rowland Penny repenny241155 at gmail.com
Mon May 19 03:39:41 MDT 2014


On 19/05/14 03:53, Günter Kukkukk wrote:
> Am 18.05.2014 19:36, schrieb Marc Muehlfeld:
>> Hello,
>>
>> I've finished a new HowTo this week (please proofread):
>>
>> https://wiki.samba.org/index.php/Using_RFC2307_on_a_Samba_DC
>>
>>
>> Regards,
>> Marc
>>
> Hi Marc,
>
> thanks a lot - great new info! :-)
>
> I'm not 100% sure atm, but i think some further clarifications regarding
>    ${NETBIOSNAME} aka "Netbios Name", ...
> are needed.
>
> At the top you use:
> -------------------------------------
> Server information used in this HowTo
>
> Inside this HowTo, we will be using the following configuration/settings:
>
> Domain Controller Name: DC1          <==== !!! smb.conf: "netbios name = DC1" ?
> Installation Directory: /usr/local/samba/
> LDAP Domain DN:         DC=samdom,DC=example,DC=com
> Netbios Name:           samdom       <==== !!! what is meant here - a "netbios hostname" or a "netbios domain"?
> NIS Domain:             samdom
> --------------------------------------
>
> Later down in section
> --------------------------------------
> Extending the Schema for NIS Extensions
>
> # sed -i -e 's/${DOMAINDN}/DC=samdom,DC=example,DC=com/g' \
>           -e 's/${NETBIOSNAME}/samdom/g' \    <==== is that really right?
>           -e 's/${NISDOMAIN}/samdom/g' \
>           /tmp/ypServ30.ldif
> --------------------------------------
>
> In "ypServ30.ldif" this replacement is done then in many places:
>
> msSFU30MasterServerName: ${NETBIOSNAME}     <=== is that expected ?
> -------------------------------------------------------------------------
>
> The following command will list some *basic* domain infos:
> samba-tool domain info li4771-131
>
> Forest           : addlz.kukkukk.com
> Domain           : addlz.kukkukk.com
> Netbios domain   : ADDLZ
> DC name          : li4771-131.addlz.kukkukk.com
> DC netbios name  : LI4771-131
> Server site      : Default-First-Site-Name
> Client site      : Default-First-Site-Name
>
> to get some relationship to the "legacy NETBIOS names".
>
> Cheers, Günter
Hi, Gunter is correct, ${NETBIOSNAME} should be set to the hostname of 
your first DC i.e. the one that you provisioned.

Here is the proof:

 From ypServ30.ldif:

dn: CN=${NISDOMAIN},CN=mail,CN=ypServ30,CN=RpcServices,CN=System,${DOMAINDN}
objectClass: top
objectClass: msSFU30DomainInfo
msSFU30MasterServerName: ${NETBIOSNAME}
msSFU30OrderNumber: 10000
msSFU30Domains: ${NISDOMAIN}

 From my server (sanitized):

dn: 
CN=example,CN=mail,CN=ypServ30,CN=RpcServices,CN=System,DC=example,DC=com
objectClass: top
objectClass: msSFU30DomainInfo
msSFU30MasterServerName: DC1
msSFU30OrderNumber: 10000
msSFU30Domains: example

Rowland


More information about the samba-technical mailing list