Developers Documentation

×

Warning

301 error for file:https://clearos.com/dokuwiki2/lib/exe/css.php?t=dokuwiki&tseed=82873f9c9a1f5784b951644363f20ef8

User Tools

Site Tools


Samba4

The emergence of Samba 4 will bring on support for Active Directory. The software should still be considered alpha!

Walkthrough Video

Andrew Tridgell, one of the core Samba developers, posted a technical walkthrough video. You can find it in this blog post.

ClearOS 6

These steps are currently being edited.

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

To:

/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"

source

Get the source for Samba4.

wget ftp://samba.org/pub/samba/samba4/samba-4.0.0beta7.tar.gz

Alpha 1 Implementation

Install

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:

  • Install a ClearOS system with only the graphic console tool feature enabled.
  • Install the Samba 4 alpha using the following command:
yum --enablerepo=base-plus install samba4

Then you need to set up and provision the configuration:

mkdir /etc/samba4/samba
provision
ParameterDescription
RealmKerberos realm, for example MYCOMPANY.LAN
DomainThe Windows-style domain, for example MYCOMPANY
Server RoleThe role of the server, choose “dc” here

You will see a warning about the need to copy /var/lib/samba4/private/phpldapadmin-config.php to /etc/phpldapadmin/. It is safe to ignore.

At this point, you can skip straight to Step 5 in the Samba 4 Howto documentation and start tinkering.

Next Steps

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.

References

content/en_us/dev_apps_samba4.txt · Last modified: 2014/12/23 13:16 by dloper

https://clearos.com/dokuwiki2/lib/exe/indexer.php?id=content%3Aen_us%3Adev_apps_samba4&1710837045