Samba 2.0.6, NT and logon scripts
Richard Sharpe
sharpe at ns.aus.com
Wed Feb 9 06:30:05 GMT 2000
Hi,
At 04:13 PM 2/9/00 +1100, Luke Kenneth Casson Leighton wrote:
>i _told_ ya - the tandard_sub stuff is totally stupidly broken :)
>
>anyway, you can't use %u, in lp_logon_script() you have to use %U.
Hmmm, well, OK, you are right ... However, %u works for Win9X logons, and
now I know that %U works for Win NT logons ...
>On Wed, 9 Feb 2000, Richard Sharpe wrote:
>
>> Hi,
>>
>> I have been experimenting and messing around with Samba 2.0.6 as a PDC ...
>> and have found that is you set logon script to %u.bat, things do not work
>> very well. It seems that the code that handles the RPC call that retrieves
>> all the appropriate info does not call standard_sub on lp_logon_script :-(
>>
>> Thus if you had a mixed Win9X and NT environment, you would be forced to
>> use include files to allow you to:
>>
>> 1. Generate scripts for Win 9X users
>> 2. Have a logon script for NT users that was relevant ...
>>
>> ie,
>>
>> logon script = %u.bat
>> include = /etc/smb.conf.%a
>>
>> Let's see if this works ...
>>
>>
>>
>>
>> Regards
>> -------
>> Richard Sharpe, sharpe at ns.aus.com, Master Linux Administrator :-),
>> Samba (Team member, www.samba.org), Ethereal (Team member, www.zing.org)
>> Co-author, SAMS Teach Yourself Samba in 24 Hours
>> Author: First Australian 5-day, intensive, hands-on Linux SysAdmin course
>>
>
><a href="mailto:lkcl at samba.org" > Luke Kenneth Casson Leighton </a>
><a href="http://www.cb1.com/~lkcl"> Samba and Network Development </a>
><a href="http://samba.org" > Samba Web site </a>
><a href="http://www.iss.net" > Internet Security Systems, Inc. </a>
><a href="http://mcp.com" > Macmillan Technical Publishing </a>
>
> ISBN1578701503 DCE/RPC over SMB: Samba and Windows NT Domain Internals
>
>
Regards
-------
Richard Sharpe, sharpe at ns.aus.com, Master Linux Administrator :-),
Samba (Team member, www.samba.org), Ethereal (Team member, www.zing.org)
Co-author, SAMS Teach Yourself Samba in 24 Hours
Author: First Australian 5-day, intensive, hands-on Linux SysAdmin course
More information about the samba-ntdom
mailing list