Libnss winbind Links

Revision as of 15:29, 1 November 2015 by Hortimech (talk | contribs) (minor change 'uname -i' to 'uname -m')

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 paths. It's not recommended to copy the file to the library path, because after a Samba update it will always have to be replaced.



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 -m



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