[Samba] Maximum characters for valid users = ?
Andrew Bartlett
abartlet at samba.org
Fri Mar 28 07:09:56 GMT 2003
On Fri, 2003-03-28 at 05:07, Tom Dickson wrote:
> We have winbind running on our server, so all of our usernames look like
> MIXEDDOMAIN+User Name, and because of the spaces in the names, we wrap all
> of them with " "MIXEDDOMAIN+User Name" ". One share has many users, so the
> valid users = list becomes long (over 1024 characters).
Yes, in Samba 2.2 there is a static buffer here, of 1024 chars.
> Testparm gives this error:
>
> ERROR: string overflow by 34 in safe_strcpy [" "@MIXEDDOMAIN+Cert
> Publishers" "
> " "@MIXEDDOMAIN]
>
> Whenever we get that error, there is difficulty connecting from the windows
> clients.
>
> If I remove about 50 characters worth of names, it goes away and everything
> works right (for the names left). I know I can get around this limitation by
> assigning a group on the 2000 server, but I still have two questions. Can I
> have more that one valid users = line per share?
No.
> And, is there a better way
> to deal with spaces in usernames than " "User Name" "?
>
> Note: The same thing happens with write list =.
This should be fixed in Samba 3.0, due to a change to the way we process
such lists, but you are much advised to use a group on the server.
Andrew Bartlett
--
Andrew Bartlett abartlet at pcug.org.au
Manager, Authentication Subsystems, Samba Team abartlet at samba.org
Student Network Administrator, Hawker College abartlet at hawkerc.net
http://samba.org http://build.samba.org http://hawkerc.net
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://lists.samba.org/archive/samba/attachments/20030328/07825739/attachment.bin
More information about the samba
mailing list