Tuesday, August 12, 2014

old linux box old samba join old

Adding a Linux domain member machine

configure the smb.conf file with all happiness.  Include workgroup, authentication via domain, etc.

check if config is nifty fine:
% testparm

to check if ldap auth via nsswitch is okay, execute:
%getent passwd
%getent group

join the domain:
% net rpc testjoin -S 'PDC' -U Administrator%yesyes
% net rpc join -U Administrator%oreilly

if errors abound, may need in smb.conf:
client schannel = no

or... just do it again.

afterwards, check if all is fine:
% smbclient -L localhostname

it should show something like:

Anonymous login successful
Domain=[ONTHEPHONE] OS=[Unix] Server=[Samba 3.0.22]

        Sharename       Type      Comment
        ---------       ----      -------
        ADMIN$          IPC       IPC Service (bollocks server (Samba 3.0.22))
        IPC$            IPC       IPC Service (bollocks server (Samba 3.0.22))
        localtest       Disk      testing in /usr/local
Anonymous login successful
Domain=[ONTHEPHONE] OS=[Unix] Server=[Samba 3.0.22]

        Server               Comment
        ---------            -------
        FARMINGTON           bollocks server (Samba 3.0.22)
        PDC                  onthephone server (Samba 3.0.11)

        Workgroup            Master
        ---------            -------
        ONTHEPHONE           PDC

If the server is a BDC, do not forget to:

% smbpasswd -w 

No comments: