Samba 2.2.7 and logon script processing

Randy Cox randy.cox at allegroassociates.com
Wed Dec 4 23:44:47 GMT 2002


Hi All,

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.


So the question is, is there a patch for 2.2.7 I missed somewhere?
TIA

Randy Cox
Senior Technical Resource
randy.cox @ allegroassociates.com






More information about the samba-technical mailing list