I did a clean install of Ubuntu server 12.04.2 and chose SSH only, during install to be able to admin it. I then installed samba4 with apt-get, then I ran provisioning:
Code:
/usr/share/samba/setup/provision --realm=mydomain.lan --domain=MYDOMAIN --adminpass='Test123' --server-role=dc
I'm pretty sure it is a domain controller, even though the testparm result shows otherwise. I have added several XP machines to the domain, and I've created users with roaming profiles. Both computers and users can authenticate against the server and everything but making home folders works.
I believe there is a new version of testparm I could run but I have forgotten the command, testparm for samba 4. Correct me if I'm wrong.
The version of samba4:
Code:
root@DC01:/# samba -V
Version 4.0.0alpha18
I did what you suggested.
Code:
root@DC01:/# mkdir -m 770 /users
root@DC01:/# chmod g+s /users
root@DC01:/# chown root:users /users
I edited smb.conf and added:
Code:
[Users]
directory_mode: parameter = 0700
read only = no
path = /users
csc policy = documents
Administrator can now create home folders for the users, but users can't access it.
//Edit
http://wiki.samba.org/index.php/Samba_AD_DC_HOWTO
The command is samba-tool testparm
Code:
root@DC01:/# samba-tool testparm
Press enter to see a dump of your service definitions
# Global parameters
[global]
server role = domain controller
workgroup = MYDOMAIN
realm = mydomain.lan
netbios name = DC01
passdb backend = samba4
[netlogon]
path = /var/lib/samba/sysvol/mydomain.lan/scripts
read only = No
[sysvol]
path = /var/lib/samba/sysvol
read only = No
[profile]
path = /home/profile
read only = No
browseable = No
[profiles]
path = /home/profiles
read only = No
browseable = No
[Users]
path = /users
read only = No
csc policy = documents
directory_mode: parameter = 0700
[hemkatalog]
comment = Hemkataloger for alla deltagare.
path = /home/hemkatalog
read only = No
browseable = No
[Hem]
path = /home/hem
//
Bookmarks