Libnss winbind Links: Difference between revisions

From SambaWiki
(Change link creation. First we link the existing file (libnss_winbind), then we create a second link to the first one.)
(Few modifications on the libnss_winbind links page)
Line 1: Line 1:
= Introduction =
= Introduction =


For hosts that should retrieve user and group information via Winbindd, two symbolic links need to exist in your installation.
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.




Line 12: Line 12:


# uname -i
# 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





Revision as of 22:32, 17 October 2015

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