FreeBSD10.0 + SAMBA4 でActiveDirectoryごっこ
[test@sv1.example.local /home/test]# uname -a FreeBSD test.example.local 10.0-RELEASE FreeBSD 10.0-RELEASE #0 r260789: Fri Jan 17 01:46:25 UTC 2014 root@snap.freebsd.org:/usr/obj/usr/src/sys/GENERIC i386
samba4のインストール
[test@sv1.example.local /home/test]# pkg install samba41-4.1.4_1 [test@sv1.example.local /home/test]# samba -V Version 4.1.4
fstabとか編集しておく
↓編集前
[test@sv1.example.local /home/test]# cat /etc/fstab # Device Mountpoint FStype Options Dump Pass# /dev/ada0p2 / ufs rw 1 1 /dev/ada0p3 none swap sw 0 0
↓編集後
[test@sv1.example.local /home/test]# vi /etc/fstab # Device Mountpoint FStype Options Dump Pass# /dev/ada0p2 / ufs rw,acls 1 1 /dev/ada0p3 none swap sw 0 0
はまったところ...
[test@sv1.example.local /home/test]# samba-tool domain provision --use-rfc2307 --interactive Realm [EXAMPLE.LOCAL]: Domain [EXAMPLE]: Server Role (dc, member, standalone) [dc]: DNS backend (SAMBA_INTERNAL, BIND9_FLATFILE, BIND9_DLZ, NONE) [SAMBA_INTERNAL]: DNS forwarder IP address (write 'none' to disable forwarding) [192.168.0.1]: Administrator password: Retype password: Looking up IPv4 addresses Looking up IPv6 addresses No IPv6 address will be assigned ldb: module schema_load initialization failed : No such object ldb: module rootdse initialization failed : No such object ldb: module samba_dsdb initialization failed : No such object ldb: Unable to load modules for /var/db/samba4/private/sam.ldb: (null) samdb_connect failed VFS connect failed! ERROR(<class 'samba.provision.ProvisioningError'>): Provision failed - ProvisioningError: Your filesystem or build does not support posix ACLs, which s3fs requires. Try the mounting the filesystem with the 'acl' option. File "/usr/local/lib/python2.7/site-packages/samba/netcmd/domain.py", line 398, in run use_rfc2307=use_rfc2307, skip_sysvolacl=False) File "/usr/local/lib/python2.7/site-packages/samba/provision/__init__.py", line 2052, in provision raise ProvisioningError("Your filesystem or build does not support posix ACLs, which s3fs requires. Try the mounting the filesystem with the 'acl' option.")
なんかエラーだ...
ググるとこんなの出てきた!
[test@sv1.example.local /home/test]# samba-tool domain provision --use-rfc2307 --interactive --use-ntvfs
で、OKだった。
続きはまた後で...