To configure the Samba service:
systemctl start smb
systemctl enable smb
systemctl start nmb
systemctl enable nmb
systemctl start smbd
systemctl enable smbd
systemctl start nmbd
systemctl enable nmbd
[global]
workgroup = <NetBIOS name of the Active Directory domain>
password server = <DNS name of the Active Directory domain controller>
realm = <uppercase Active Directory domain name>
security = ads
idmap uid = 10000-20000
idmap gid = 10000-20000
winbind use default domain = no
winbind request timeout = 300
net ads join -U <domain administrator>
You will be prompted to enter the password of the domain administrator or the password of a user with domain administrator rights.
The server hosting the Squid service should be added to the Active Directory domain.
net ads testjoin
If the server hosting the Squid service was added to the Active Directory domain, Join is OK
is displayed in the console.
systemctl restart smb
systemctl restart nmb
systemctl restart smbd
systemctl restart nmbd
If you see "ERROR: failed to setup guest info", you must configure mapping for the guest group. To do so, run the command net groupmap add sid=S-1-5-32-546 unixgroup=nobody type=builtin
systemctl start winbind
systemctl enable winbind
usermod -a -G winbindd_priv proxy
Samba configuration will be completed. Proceed to check the Samba settings.
Page top