I used Debian in order to create a domain controller. It works very good, I configured properly Samba and Kerberos, I can join other PCs using Windows to my domain controller from Debian, everything works perfectly. The only problem is that I don't really get it how I am supposed to set the logon scripts for windows to run on these PCs with Windows. I tried to add .bat files to /usr/local/samba/var/locks/sysvol/domain.controller.name.com/scripts, but got no succes..
I have found something on the Internet saying that i should add the following line to smb.conf in [global]
Code: Select all
logon script = scripts\%m.bat
Code: Select all
# Global parameters
[global]
workgroup = DOMAIN-NAME
realm = domain-controller.name.com
netbios name = DC2
server role = active directory domain controller
dns forwarder = XXX.XXX.XXX.XXX
logon script = scripts\%m.bat
[netlogon]
path = /usr/local/samba/var/locks/sysvol/domain-controller.name.com/scripts
read only = No
[sysvol]
path = /usr/local/samba/var/locks/sysvol
read only = No
[users]
directory_mode: parameter = 0700
read only = no
path = /Users
csc policy = documents