The software described in this documentation is either in Extended Support or Sustaining Support. See https://www.oracle.com/us/support/library/enterprise-linux-support-policies-069172.pdf for more information.
Oracle recommends that you upgrade the software described by this documentation as soon as possible.
If the Samba server acts as a Primary or Backup Domain Controller, do not use the domain security model. Configure the system as a standalone server that uses the user security model instead. See Section 21.3.2.1, “Configuring Samba as a Standalone Server”.
The domain security model is used with domains that implement Windows NT4 security. The Samba server must have a machine account in the domain (a domain security trust account). Samba authenticates user names and passwords with either a primary or a secondary domain controller.
To add a Samba server to an NT4 domain:
On the primary domain controller, use the Server Manager to add a machine account for the Samba server.
Edit
/etc/samba/smb.confand configure the[global]section to use ADS:[global] security = domain workgroup =
DOMAINnetbios name =SERVERNAMEJoin the server to the domain:
#
net rpc join -S winpdc.mydom.com -U Administrator%passwordIn this example, the primary domain controller is
winpdc.mydom.comandpasswordis the password for the Administrator account.Restart the
smbservice:#
service smb restartCreate an account for each user who is allowed access to shares or printers:
#
useradd -s /sbin/nologin#usernamepasswdusernameIn this example, the account's login shell is set to
/sbin/nologinto prevent direct logins.

