Samba4 nmbd/smbd/winbindd

steve steve at steve-ss.com
Sun Aug 26 14:40:17 MDT 2012


On 26/08/12 22:07, Ricky Nance wrote:
  As for your getent issue how
> is your nsswitch.conf file setup, for winbind or ldap? If setup for ldap
> you will need the libnss_ldap files (nss-ldap package), however if you are
> trying to use winbind you will need to link the files from
> /usr/local/samba/lib (I think, I don't a terminal handy right at the
> moment)... libnss_winbind.so should be linked to where your system libs are
> located (for example ln -sf /usr/local/samba/lib/libnss_winbind.so
> /lib/libnss_winbind.so and  ln -sf /usr/local/samba/lib/libnss_winbind.so
> /lib/libnss_winbind.so.2, again I don't have a terminal handy to confirm
> those paths, so you may need to add or change something there). Good luck
> and keep us posted.

Hi
I just found this on the Samba 4 winbind wiki:
sudo ln -s /usr/local/samba/lib/libnss_winbind.so.2 /lib
sudo ln -s /usr/local/samba/lib/security/pam_winbind.so /lib/security
sudo ln -s /usr/local/samba/lib/security/pam_smbpass.so /lib/security/

You also need to set the PAM settings to able to log in. Don't know if 
there is a tool in Centos for that; something like pam-auth-update in 
Ubuntu or pam-config --add --winbind

Be careful: have a pam.d backup and a few root terminals open before 
adjusting the PAM settings.

What a way to spend a Sunday eh:)

Good luck,
Steve


More information about the samba-technical mailing list