Libnss winbind Links: Difference between revisions

From SambaWiki
(New page about libnss_winbind links (page will be linked in a new guide about domain members))
 
m (/* added <include>...</noinclude>')
(16 intermediate revisions by 3 users not shown)
Line 1: Line 1:
= Introduction =
<noinclude>= Introduction =</noinclude>


If you compile Samba yourself, 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. If you are are using Samba packages from your distro, there are usually distro packages to do this for you e.g. libpam-winbind and libnss-winbind on Debian.
For hosts that should retrieve user and group information via Winbindd, two symbolic links need to exist in your installation.


{{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 -i


# uname -m








= Red Hat based Operating Systems =


= Locating the <code>libnss_winbind.so.2</code> Library =
== x86_64 ==


The <code>libnss_winbind.so.2</code> library is installed in the Samba library directory set at compile time. To locate the folder:
# ln -s /usr/local/samba/lib/libnss_winbind.so /lib64/
# ln -s /lib64/libnss_winbind.so /lib64/libnss_winbind.so.2
# ldconfig


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


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


== i686 ==



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

# ln -s /lib/libnss_winbind.so /lib/libnss_winbind.so.2

= 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
# 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 ==


== Debian-based Operating Systems ==
# ln -s /usr/local/samba/lib/libnss_winbind.so /lib/x86_64-linux-gnu

# ln -s /lib/x86_64-linux-gnu/libnss_winbind.so /lib/x86_64-linux-gnu/libnss_winbind.so.2
=== 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
# ldconfig






== i686 ==
=== i686 ===


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





=== ARM ===

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






= SUSE based Operating Systems =
== SUSE-based Operating Systems ==


== x86_64 ==
=== x86_64 ===


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






== i686 ==
=== i686 ===


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

Revision as of 14:44, 7 March 2019

Introduction

If you compile Samba yourself, 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. If you are are using Samba packages from your distro, there are usually distro packages to do this for you e.g. libpam-winbind and libnss-winbind on Debian.



Determining the Platform

To determine the operating system's platform:

# uname -m



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


ARM

# ln -s /usr/local/samba/lib/libnss_winbind.so.2 /lib/arm-linux-gnueabihf/
# ln -s /lib/arm-linux-gnueabihf/libnss_winbind.so.2 /lib/arm-linux-gnueabihf/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