RFC: passdb redesign

Gerald Carter gcarter at valinux.com
Fri Nov 10 16:48:51 GMT 2000


Simo Sorce wrote:
> 
> Yes, you are right.
> At this point I think it is redundant to have user uid 
> and gid in sam_passwd. smbd should check for username 
> and retrieve the RID, check system (getpwnam?) and retrieve 
> the UID and then store in a temporary cache uid<->rid 
> mapping. 

sam_passwd is the uid<->rid mapping cache.  The uid/gid fields
are filled in via a call to getpwnam() after the user_struct is
retreived from the passdb backend.





Cheers, jerry
----------------------------------------------------------------------
   /\  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