[Samba] "net rpc vampire" case sensitivity problem

Andrew Bartlett abartlet at samba.org
Fri Mar 26 22:47:54 GMT 2004


On Thu, 2004-03-25 at 16:34, Ed Ravin wrote:
> We just migrated a small network from a Win2K PDC to Samba, using
> "net rpc vampire" into a tdbsam backend on a Samba 3.0.2a Linux box.
> 
> One of the users, let's call him Jon Harker, had the NT username "JHarker".
> When we ran  "pdbedit -v jharker", we saw this:
> 
>    Unix username:        JHarker
>    NT username:          JHarker
> 
> Well, that looks wrong - the NT username can be mixed case for all I care,
> but shouldn't the Unix name be all lower case?

The rule I've been working with is that they must be in the same case. 
The reason is simple - it is a matter of performance.  There were times
that we allowed usernames to differ in case, but we make the lookup from
passdb -> getpwnam() quite often, so I decided that as we always add the
username in the 'right' case, and that we should trust that case when
looking up users.

(Looking up users in mixed case can cause 2+2^N getpwnam() lookups,
where N is the value of 'username level').

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/20040327/02e60eba/attachment.bin


More information about the samba mailing list