[Samba] Samba 2.2.7 login script processing
Dietrich Restemeyer
Dietrich.Restemeyer at t-online.de
Thu Dec 5 21:39:00 GMT 2002
On Tuesday 03 December 2002 19:42, Randy Cox wrote:
> Hi All,
>
> I posted this earlier, but not sure if it showed up, so:
>
> samba 2.2.7 built with:
> ./configure
> make
> make install
>
> (That is, no special build options)
>
> in our smb.conf the line:
>
> logon script = %u.bat:
> ^
>
> lowercase ------
>
> When trying to login (from Windows 9x,NT, 2K or Linux with winbindd),
> several (hundred) of these messages appear in the server logs:
>
> [the date shows up here] lib/util_str.c: string_sub (1217)
> ERROR: string overflow by 2 in string_sub(%u, 7)
> ^
>
> and this number --------------------------------------
> is the user name length + 2
>
> The workstation trying to login eventually times out with an "incorrect
> password" message. On the server, smbd and nmbd stop responding to
> /etc/init.d/samba stop or other commands and need to be stopped with kill
> -9
>
> if we change the line in smb.conf to
> logon script = %U.bat:
> ^
>
> uppercase ------
>
> Then everything works fine. Is there a patch I missed somewhere?
> TIA
>
>
> Senior Technical Associate
> randy.cox at allegroassociates.com
just the same here at my network.
if i use logon script = li-%u.bat
and rename the batchfiles it works too.
More information about the samba
mailing list