[Samba] Enabling NIS after samba4 installation

Michael Brown michael at netdirect.ca
Thu Nov 28 10:11:32 MST 2013


On 13-11-28 11:25 AM, Rowland Penny wrote:
> You need to add ypServ30.ldif, if you compiled Samba4 yourself it is 
> usually in /usr/local/samba/share/setup/
Perfect.

I like doing what I can as non-root, so here's my final version:

$ kinit administrator at AD.NETDIRECT.CA
Password for administrator at AD.NETDIRECT.CA
Warning: Your password will expire in 35 days on Thu Jan  2 23:50:26 2014
$ sed -e 's/${DOMAINDN}/dc=AD,dc=NETDIRECT,dc=CA/g'  \
       -e 's/${NETBIOSNAME}/NETDIRECT/g'              \
       -e 's/${NISDOMAIN}/NETDIRECT/g'                \
       /usr/share/samba/setup/ypServ30.ldif | ldbmodify -H 
ldap://ad1.ad.netdirect.ca --option="dsdb:schema update allowed=true" -k 
yes -i
Modified 55 records successfully

Bang-on, thanks!

M.

-- 
Michael Brown               | `One of the main causes of the fall of
Systems Consultant          | the Roman Empire was that, lacking zero,
Net Direct Inc.             | they had no way to indicate successful
☎: +1 519 883 1172 x5106    | termination of their C programs.' - Firth



More information about the samba mailing list