logon script problems

Univention Corporate Server (Wiki)

logon script problems

Postby jclambert » Thu 9. Feb 2012, 18:52

In my test environment I have 3 Univention servers. One samba 4 (called pdc). The second samb4 (called bdc). The 3rd is a samba 3 domain member (called Fserver)


I have tried entering: logon.bat under an individual user. This is not auto-execute for my test XP Clients
I have tried entering: scripts\logon.bat under an individual user. This is not auto-execute for XP Client
I have tried setting the Univention Configuration Registry variable samba/logonscript to scripts\logon.bat and this is not auto-execute for XP Clients
I can manually execute the logon.bat file from \\pdc\netlogon and get the intended results.

Any idea what I am doing wrong?
User avatar
jclambert
 
Posts: 35
Joined: Thu 9. Feb 2012, 16:44

Re: logon script problems

Postby jclambert » Fri 10. Feb 2012, 18:47

Adding pauses to the LOGON.BAT file helped prove that it was not even processing the BAT file.
Am I formatting the location for the script wrong? (scripts\logon.bat)
User avatar
jclambert
 
Posts: 35
Joined: Thu 9. Feb 2012, 16:44

Re: logon script problems

Postby Meybohm » Mon 13. Feb 2012, 15:27

Hello,

with Samba 4, all logon scripts have to be placed in /var/lib/samba/sysvol/<DOMAIN>/scripts/ (see chapter "Logon scripts / NETLOGON share" of the UCS 3.0 manual). After that just add the filename of your script as logon script for individual users.

The UCR variable "samba/logonscript" only works in Samba 3 domains. With Samba 4 / AD you will have to add a global logon script via domain policy or set the logon script for each user as described above.

Regards,
Janis Meybohm
User avatar
Meybohm
Univention Support
 
Posts: 909
Joined: Fri 22. Jul 2005, 10:42
Location: Bremen

Re: logon script problems

Postby jclambert » Mon 13. Feb 2012, 16:00

OK, so group policy is the only way within Samba4 domain.
I can live with that, I just hadn't begun testing GPO with Univention yet.
User avatar
jclambert
 
Posts: 35
Joined: Thu 9. Feb 2012, 16:44


Return to UCS

Who is online

Users browsing this forum: No registered users and 1 guest