[RFC] libwclient: Implementing wbc_Getpwent and wbc_Getgrent

Gerald (Jerry) Carter jerry at samba.org
Mon Nov 3 12:33:22 GMT 2008


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Kai Blin wrote:
> Hi folks,
> 
> I'm currently looking at switching the winbind_nss_*.c files to use 
> libwbclient. However, to do so, I need to implement the getpwent and getgrent 
> calls in libwbclient. It seems like winbind will return up to 500 passwd 
> structs per WINBINDD_GETPWENT call. Do we want to make libwbclient return all 
> of those and let the caller deal with walking them or do we want to only 
> return one struct like getpwent does?

In this case, I would vote for efficiency and say give the pwent
data back in chunks.







cheers, jerry
- --
=====================================================================
Samba                                    ------- http://www.samba.org
Likewise Software          ---------  http://www.likewisesoftware.com
"What man is a man who does not make the world better?"      --Balian
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.2 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFJDu+RIR7qMdg1EfYRAs0FAKCwKCs4MgZ+bBgk4wjrZA8R9zW1RQCffvmN
2i9hkPP5gD3GOnkECXfgJUY=
=eeq3
-----END PGP SIGNATURE-----


More information about the samba-technical mailing list