Active Directory Integration
Accessing a Samba Share
Another, use for Samba is to integrate into an existing Windows network. Once part of an Active Directory
domain, Samba can provide file and print services to AD users. For details on how to join a domain, see the
SSSD and Active Directory chapter of this guide.
Once part of the Active Directory domain, enter the following command in the terminal prompt:
sudo apt i n s t a l l samba c i f s −u t i l s s m b c l i e n t
Next, edit /etc/samba/smb.conf changing:
workgroup = EXAMPLE
. . .
s e c u r i t y = ads
realm = EXAMPLE.COM
. . .
idmap backend = lwopen
idmap u i d = 50 −9999999999
idmap g i d = 50 −9999999999
Restart samba for the new settings to take effect:
sudo s y s t e m c t l r e s t a r t smbd . s e r v i c e nmbd . s e r v i c e
You should now be able to access any Samba shares from a Windows client. However, be sure to give the
appropriate AD users or groups access to the share directory. See Securing File and Print Server for more
details.
Do'stlaringiz bilan baham: