RFC: Draft 2 of passdb redesign

Gerald Carter gcarter at valinux.com
Fri Nov 10 18:01:37 GMT 2000

Gerald Carter wrote:
>    /*
>       Search Functions :
>       Each function returns a pointer to a static area
>       of memory (one for all functions, not one for each
>       function).  This is done for effenciency.  If the
>       caller wishes to maintain a copy of the SAM_ACCOUNT
>       struct across calls(), it must make of copy of the
>       struct returned.
>    */
>    SAM_ACCOUNT* pdb_getsampwent ();
>    SAM_ACCOUNT* pdb_getsampwnam (char* username);
>    SAM_ACCOUNT* pdb_getsampwuid (uid_t uid);
>    SAM_ACCOUNT* pdb_getsampwrid (uint32 rid);


	void* pdb_setsampwent();
	void  pdb_endsampwent();

for enumeration purposes.

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