Proposal for modifying Get_Pwnam() [Re: couple of getpwnam()questions]

Gerald Carter gcarter at
Mon Nov 27 04:22:19 GMT 2000

okuyamak at wrote:
> 1. Why did you not make "AS-IS" test first?
> # I thought this is the easiest, and yet highest possible...

Because I have never met a UNIX sysadmin which did not 
use lower case usernames.  Also remember that all Win9x clients
transmit the username in upper case.

I don't really care either way, but I think a lower case 
username will match first in most circumstances.

> 2. I wonder what will happen if Japanese version of Windows Client
>   having username of Japanese......
>   Maybe we should make Get_Pwnam() as 'pointer to function',
>   and leave the way to switch to correct one according to 'coding
>   system' option.

I would assume the local getpwnam() call should handle 
the foreighn characters.  But I am by no means someone
who should be talking about foreigh character support :-)

Cheers, jerry
   /\  Gerald (Jerry) Carter                     Professional Services
 \/  VA Linux Systems   gcarter at       SAMBA Team          jerry at                     jerry at

       "...a hundred billion castaways looking for a home."
                                - Sting "Message in a Bottle" ( 1979 )

More information about the samba-technical mailing list