User Tools

Site Tools


samba4_as_domain_member

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
samba4_as_domain_member [2017/05/26 16:50]
cbustillo@uclv [Setting up a basic smb.conf]
samba4_as_domain_member [2020/04/10 17:38] (current)
Line 184: Line 184:
 ---- ----
  
-To have your domain users and groups available on your member server, you have to place two links in your /lib (/lib64 for amd64) folder:+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.  
 + 
 +To determine the operating system'​s platform:
  
-**For i386:** 
 <​code>​ <​code>​
- # ln -s /​usr/​local/​samba/​lib/​libnss_winbind.so /lib + # uname -i 
- # ln -s /​lib/​libnss_winbind.so /​lib/​libnss_winbind.so.2+</​code>​ 
 + 
 +The '​libnss_winbind.so.2'​ library is installed in the Samba library directory set at compile time. To locate the folder:  
 + 
 +<​code>​ 
 + # smbd -b | grep LIBDIR 
 +   ​LIBDIR:​ /​usr/​local/​samba/​lib/​ 
 +</​code>​ 
 + 
 +**For amd64 (x86_64):​** 
 +<​code>​ 
 + # 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
 </​code>​ </​code>​
  
-**For amd64:**+**For i386:**
 <​code>​ <​code>​
- # ln -s /​usr/​local/​samba/​lib/​libnss_winbind.so /lib64 + # ln -s /​usr/​local/​samba/​lib/​libnss_winbind.so.2 /​lib/​i386-linux-gnu
- # ln -s /lib64/​libnss_winbind.so /lib64/​libnss_winbind.so.2+ # ln -s /lib/​i386-linux-gnu/​libnss_winbind.so.2 /lib/​i386-linux-gnu/​libnss_winbind.so
  # ldconfig  # ldconfig
 </​code>​ </​code>​
  
-//**For Samba4 Sernet: (you should not have to do the following normally, if not work try:)**//+//**For Samba4 Sernet ​or repository distro installation: (you should not have to do the following normally, if not work try:)**// 
 + 
 +**For amd64(x86_64):​** 
 + 
 +You must have linked '/​lib/​x86_64-linux-gnu/​libnss_winbind.so -> libnss_winbind.so.2'​. To linked:
  
-**For i386:** 
 <​code>​ <​code>​
- # ln -s /lib/i386-linux-gnu/​libnss_winbind.so /lib + # ln -s /lib/x86_64-linux-gnu/​libnss_winbind.so.2 /lib/x86_64-linux-gnu/​libnss_winbind.so
- # ln -s /lib/​libnss_winbind.so ​/​lib/​libnss_winbind.so.2+
  # ldconfig  # ldconfig
 </​code>​ </​code>​
  
-**For amd64:**+**For i386:** 
 + 
 +You must have linked '/​lib/​i386-linux-gnu/​libnss_winbind.so -> libnss_winbind.so.2'​. To linked: 
 <​code>​ <​code>​
- # ln -s /lib/x86_64-linux-gnu/​libnss_winbind.so /lib64 + # ln -s /lib/i386-linux-gnu/​libnss_winbind.so.2 /lib/i386-linux-gnu/​libnss_winbind.so
- # ln -s /lib64/​libnss_winbind.so ​/​lib64/​libnss_winbind.so.2+
  # ldconfig  # ldconfig
 </​code>​ </​code>​
Line 230: Line 247:
 ===== Starting the daemons ===== ===== Starting the daemons =====
 ---- ----
- 
-Before start Samba 
  
 Once you have finished the above steps, you must start the following services: Once you have finished the above steps, you must start the following services:
Line 294: Line 309:
  
  
 +===== Verifying the File Server ===== 
 +----
 +
 +To list all shares provided by the Samba File Server:
 +
 +<​code>​
 + # smbclient -L localhost -U%
 +</​code>​
 +
 +To verify authentication,​ connect to the "​Demo"​ share using the domain administrator account:
 +
 +<​code>​
 + # smbclient //​localhost/​Demo -UAdministrator -c '​ls'​
 +</​code> ​
 +===== Try out some net commands to see if Samba can communicate with AD: =====
 +----
 +
 +<​code>​
 + # net ads info
 + # net ads lookup
 + # net ads status -U administrator | less
 +</​code>​
 ===== Leaving domain ===== ===== Leaving domain =====
 ---- ----
samba4_as_domain_member.1495817425.txt.gz · Last modified: 2020/04/10 17:38 (external edit)