Libnss winbind Links

Revision as of 19:59, 26 October 2015 by Hortimech (talk | contribs) (Locate libnss_winbind.so.2: typo)

Introduction

For hosts that should retrieve domain user and group information via Winbindd, two symbolic links need to exist in one of the operating systems library path. It's not recommended to copy the file the library path, because after a Samba update, it always needs to be replaced in that case.



x86_64 vs. i686

The folder in which the the links need to be created differ on the platform you are running. To determine, run

# uname -i



Locate libnss_winbind.so.2

The libnss_winbind.so.2 is placed in the library directory, set by ./configure. The default is "/usr/local/samba/lib/". To find out the folder in your installation, run

# smbd -b | grep LIBDIR
   LIBDIR: /usr/local/samba/lib/

Alternatively use "find" to locate the file

# find / -type f -name libnss_winbind.so.2
/usr/local/samba/lib/libnss_winbind.so.2

Red Hat based Operating Systems

x86_64

# ln -s /usr/local/samba/lib/libnss_winbind.so.2 /lib64/
# ln -s /lib64/libnss_winbind.so.2 /lib64/libnss_winbind.so
# ldconfig


i686

# ln -s /usr/local/samba/lib/libnss_winbind.so.2 /lib/
# ln -s /lib/libnss_winbind.so.2 /lib/libnss_winbind.so
# ldconfig



Debian based Operating Systems

x86_64

# ln -s /usr/local/samba/lib/libnss_winbind.so.2 /lib/x86_64-linux-gnu/
# ln -s /lib/x86_64-linux-gnu/libnss_winbind.so.2 /lib/x86_64-linux-gnu/libnss_winbind.so
# ldconfig


i686

# ln -s /usr/local/samba/lib/libnss_winbind.so.2 /lib/i386-linux-gnu/
# ln -s /lib/i386-linux-gnu/libnss_winbind.so.2 /lib/i386-linux-gnu/libnss_winbind.so
# ldconfig



SUSE based Operating Systems

x86_64

# ln -s /usr/local/samba/lib/libnss_winbind.so.2 /lib64/
# ln -s /lib64/libnss_winbind.so.2 /lib64/libnss_winbind.so
# ldconfig


i686

# ln -s /usr/local/samba/lib/libnss_winbind.so.2 /lib/
# ln -s /lib/libnss_winbind.so.2 /lib/libnss_winbind.so
# ldconfig