[Samba] SAMBA-LDAP and variable substition
werner.maes at cc.kuleuven.ac.be
Wed Jun 26 06:43:03 GMT 2002
>Have you looked into the logfiles ?
>Are you sure, that samba does variable substition
>on the value it gets from LDAP ?
samba gets this (as found in the logfile):
[2002/06/26 12:37:15, 2] passdb/pdb_ldap.c:get_single_attribute(360)
get_single_attribute: [scriptPath] = [scripts\%m.bat]
If you create a file %m.bat in the netlogon share then it works ==> samba
does not translate the value received from LDAP.
>Why don't you use logon script = scripts\%m\pc.bat ?
>This will do it too ...
>You can do anything with the "logon script"-entry ,
>specifying per user and per machine and per OS !!!
>logon script scripts\%m\%u\%a\pc.bat
>If xou're using Winxp, user is werner, machine is mymachine
>it would be :
>logon script scripts\mymachine\werner\win2K\pc.bat
Because %m is NOT translated to a machinename when this variable is stored
in the scriptPath variable in LDAP. That's the whole problem !
And for Win2000-WinXP you must use this attribute.
Or are you having a configuration that works with Samba and LDAP
authentication where the Win2000 clients use the "logon script" parameter?
More information about the samba