The emergence of Samba 4 will bring on support for Active Directory. The software should still be considered alpha!
Andrew Tridgell, one of the core Samba developers, posted a technical walkthrough video. You can find it in this blog post.
Do a fresh install.
Uninstall the following:
yum remove samba-common samba-schema samba samba-client app-samba app-samba-core samba-winbind libtalloc tdb-tools libtdb
Install Samba4 prerequisites
yum install libacl-devel libblkid-devel gnutls-devel readline-devel python-devel gdb pkgconfig krb5-workstation zlib-devel setroubleshoot-server setroubleshoot-plugins policycoreutils-python libsemanage-python setools-libs-python setools-libs popt-devel libpcap-devel sqlite-devel libidn-devel libxml2-devel libacl-devel libsepol-devel libattr-devel keyutils-libs-devel cyrus-sasl-devel
Make sure you can support the file system attributes needed:
[root@cbox6 ~]# grep CONFIG_EXT3_FS /boot/config-2.6.32-220.13.1.v6.x86_64 CONFIG_EXT3_FS_XATTR=y CONFIG_EXT3_FS_POSIX_ACL=y CONFIG_EXT3_FS_SECURITY=y
At least these should say 'y'.
Change your /etc/fstab to include specific attributes on ALL disks that will be used for sharing. Example, from:
/dev/mapper/data-data0 /store/data0 ext4 defaults 1 2
/dev/mapper/data-data0 /store/data0 ext4 user_xattr,acl 1 2
Remount the volume:
mount -o remount /dev/mapper/data-data0
Check the attribute:
mount |grep "/dev/mapper/data-data0"
Validate file system functionality run the following in the directory where the filesystem has the above attributes:
touch test.txt setfattr -n user.test -v test test.txt setfattr -n security.test -v test2 test.txt
Run the following and you should get the subsequent output
getfattr -d test.txt
# file: test.txt user.test="test"
getfattr -n security.test -d test.txt # file: test.txt security.test="test2"
Get the source for Samba4.
To get the ball rolling, an alpha 1 implementation was released in December 2009. The original Samba 4 build and announcement was made by Samba team member and ClearFoundation director John Terpstra. Here is the original forum thread. To summarize the installation instructions:
yum --enablerepo=base-plus install samba4
Then you need to set up and provision the configuration:
mkdir /etc/samba4/samba provision
|Realm||Kerberos realm, for example MYCOMPANY.LAN|
|Domain||The Windows-style domain, for example MYCOMPANY|
|Server Role||The role of the server, choose “dc” here|
At this point, you can skip straight to Step 5 in the Samba 4 Howto documentation and start tinkering.
By tweaking the ClearOS system just a little bit, it should be possible to have a Samba 4 implementation running with most of the ClearOS features still intact. A feature request has been created for ClearOS 5.2.