couple of getpwnam() questions

Gerald Carter gcarter at valinux.com
Sat Nov 25 03:29:29 GMT 2000


No one responded to this.  Should I threaten making 
the change to issue #1 unless I hear differently?
Does anyone depend on this behavior currently?





Cheers, jerry   

Gerald Carter wrote:
> 
> Folks,
> 
> A couple of comments and questions.  Perhaps someone
> can enlighten me if I am seeing this wrong.
> 
> --- username.c:Get_Pwnam() ---------------------------------
> 
> The current code tries to lookup the username
> 
>   o as transmitted
>   o in all lower case
>   o in all caps
>   o with the first letter only in upper case
>   o with the last letter only in upper case
> 
> My question is "Are the last two checks really necessary?"
> For example, a lookup of "Administrator" looks like
> 
>   o getpwnam("Administrator")
>   o getpwnam("administrator")
>   o getpwnam("ADMINISTRATOR")
>   o getpwnam("Administrator")
>   o getpwnam("AdministratoR")
> 
> IMO the last two checks should be handled by a
> 
>         username level = 1
> 
> if the host system requires them.





----------------------------------------------------------------------
   /\  Gerald (Jerry) Carter                     Professional Services
 \/    http://www.valinux.com/  VA Linux Systems   gcarter at valinux.com
       http://www.samba.org/       SAMBA Team          jerry at samba.org
       http://www.plainjoe.org/                     jerry at plainjoe.org

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





More information about the samba-technical mailing list