The Fedora 20 Active Directory Integration Guide : File Server
With Fedora 20 your file server doesn’t need to run on Windows. In this example, we will setup a simple file server using samba.
First, make sure you have joined the domain. Because the samba included with Fedora 20 can take advantage of the realmd connection to Active Directory, there is no need to do any special LDAP setup and no need to use the horrible smbpasswd utility. First, install samba.
#yum install samba
When choosing ads as the authentication method, no passdb is needed. If you have one, it will fail, so make sure it is commented out.
make the following changes.
workgroup = CORP
security = ads
encrypt passwords = yes
;passdb backend = tdbsam
realm = corp.mydomain.com
password server = *
client ntlmv2 auth = yes
Samba enables printers by default and then complains heavily in the log files so we will disable them.
load printers = no
#cups options = raw
printcap name = /dev/null
printing = bsd
To automatically serve up home directories to Active Directory users, uncomment the [homes] section of the file. This will create an automatic share for any user that connects to the file server using whatever Active Directory username they are logged into windows with.
Now start the service and enable it in the firewall
#systemctl start smb.service
#firewall-cmd –permanent –add-service=samba