[Samba] Problems with NIS Server on Samba 4

Rowland penny rpenny at samba.org
Mon Aug 19 21:04:07 UTC 2019


On 19/08/2019 21:45, Marcio Demetrio Bacci wrote:
> Hi,
>
> >Ah, I think I see the problem, If I remember correctly, you joined the
> >the Samba DC to a Windows DC and if you didn't have IDMU installed on
> >the Windows DC, you wouldn't get the required objects in AD created on
> >the Samba DC either.
>
> Really, IDMU was not installed.
>
>
> There is the file ypServ30.ldif
> ls /usr/share/samba/setup/
> ...
>  ypServ30.ldif
>
> But, I believe the extension is not enabled:
>
> ldbsearch -H /var/lib/samba/private/sam.ldb -s base -b 
> CN=ypservers,CN=ypServ30,CN=RpcServices,CN=System,DC=empresa,DC=com,DC=br 
> cn
> search error - No such Base DN: 
> CN=ypservers,CN=ypServ30,CN=RpcServices,CN=System,DC=empresa,DC=com,DC=br
>
>
> This way, Do I need to install NIS (apt-get install nis) or only 
> Replace the variables in LDIF file with the domain distinguished name 
> (DN), NetBIOS name, and the NIS domain ?

No, yes, yes and sort of ;-)

No, you do not install NIS

Yes, you replace '${DOMAINDN}' with 'DC=empresa,DC=com,DC=br'

Yes, you replace '${NETBIOSNAME}' with the DCs short hostname in uppercase

You replace '${NISDOMAIN}' (that is a bad name) with the workgroup name 
in lowercase.

ypServ30.ldif is what installing IDMU on a Windows adds to AD and is 
normally only added to Samba if you provision a new domain with 
'--use-rfc2307'

Rowland




More information about the samba mailing list