get_domain_user_groups() improvement.

Andrew Bartlett abartlet at
Sat Oct 9 01:51:03 GMT 2004

On Thu, 2004-09-23 at 10:12, Igor Belyi wrote:
> Hi,
> I have the following patch which improves performance of 
> get_domain_user_groups() function with LDAP backend by asking LDAP for 
> only groups user belong to instead of for all groups.

I finally took a look at this area, and I committed a different patch.  

I use sys_getgrouplist() to get a list of groups the user is in - that
being the 'posix way', and avoids a special case for LDAP (for now, as
you know I think such special cases are worthwhile elsewhere).

Let me know how current SVN works at your site, I would appreciate the

Andrew Bartlett

Andrew Bartlett                                 abartlet at
Authentication Developer, Samba Team  
Student Network Administrator, Hawker College   abartlet at
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url :

More information about the samba-technical mailing list