Difference between revisions of "Libnss winbind Links"

From SambaWiki
m (Mmuehlfeld moved page Libnss winbind links to Libnss winbind Links: Fix title)
(Restructured page)
Line 1: Line 1:
 
= Introduction =
 
= 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.
+
To enable hosts to receive user and group information from a domain using Winbind, you must create two symbolic links in a directory of the operating system's library path.
   
  +
{{Imbox
  +
| type = note
  +
| text = Do not copy the library to the directory. Otherwise you must replace it manually after every Samba update.
  +
}}
   
   
   
   
= x86_64 vs. i686 =
 
   
  +
= Determining the Platform =
The folder in which the the links need to be created differ on the platform you are running. To determine, run
 
   
  +
To determine the operating system's platform:
# uname -m
 
   
 
# uname -i
   
   
   
   
= Locate libnss_winbind.so.2 =
 
   
 
= Locating the libnss_winbind.so.2 library =
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
 
   
  +
The <code>libnss_winbind.so.2</code> library is installed in the Samba library directory set at compile time. To locate the folder:
# smbd -b | grep LIBDIR
 
  +
 
# smbd -B | grep LIBDIR
 
LIBDIR: /usr/local/samba/lib/
 
LIBDIR: /usr/local/samba/lib/
   
  +
Link the library from this directory in your operating system's library directory.
Alternatively use "find" to locate the file
 
   
# find / -type f -name libnss_winbind.so.2
 
/usr/local/samba/lib/libnss_winbind.so.2
 
   
   
   
   
  +
= Operating System-specific Examples =
   
= Red Hat based Operating Systems =
+
== Red Hat-based Operating Systems ==
   
== x86_64 ==
+
=== x86_64 ===
   
 
# ln -s /usr/local/samba/lib/libnss_winbind.so.2 /lib64/
 
# ln -s /usr/local/samba/lib/libnss_winbind.so.2 /lib64/
Line 43: Line 47:
   
   
== i686 ==
+
=== i686 ===
   
 
# ln -s /usr/local/samba/lib/libnss_winbind.so.2 /lib/
 
# ln -s /usr/local/samba/lib/libnss_winbind.so.2 /lib/
Line 51: Line 55:
   
   
 
== Debian-based Operating Systems ==
   
 
=== x86_64 ===
 
= Debian based Operating Systems =
 
 
== x86_64 ==
 
   
 
# ln -s /usr/local/samba/lib/libnss_winbind.so.2 /lib/x86_64-linux-gnu/
 
# ln -s /usr/local/samba/lib/libnss_winbind.so.2 /lib/x86_64-linux-gnu/
Line 63: Line 65:
   
   
== i686 ==
+
=== i686 ===
   
 
# ln -s /usr/local/samba/lib/libnss_winbind.so.2 /lib/i386-linux-gnu/
 
# ln -s /usr/local/samba/lib/libnss_winbind.so.2 /lib/i386-linux-gnu/
Line 71: Line 73:
   
   
 
== SUSE-based Operating Systems ==
   
 
=== x86_64 ===
 
= SUSE based Operating Systems =
 
 
== x86_64 ==
 
   
 
# ln -s /usr/local/samba/lib/libnss_winbind.so.2 /lib64/
 
# ln -s /usr/local/samba/lib/libnss_winbind.so.2 /lib64/
Line 83: Line 83:
   
   
== i686 ==
+
=== i686 ===
   
 
# ln -s /usr/local/samba/lib/libnss_winbind.so.2 /lib/
 
# ln -s /usr/local/samba/lib/libnss_winbind.so.2 /lib/

Revision as of 20:57, 19 October 2016

Introduction

To enable hosts to receive user and group information from a domain using Winbind, you must create two symbolic links in a directory of the operating system's library path.



Determining the Platform

To determine the operating system's platform:

# uname -i



Locating the libnss_winbind.so.2 library

The libnss_winbind.so.2 library is installed in the Samba library directory set at compile time. To locate the folder:

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

Link the library from this directory in your operating system's library directory.



Operating System-specific Examples

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