get_domain_user_groups() improvement.

Andrew Bartlett abartlet at samba.org
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
feedback.

Andrew Bartlett

-- 
Andrew Bartlett                                 abartlet at samba.org
Authentication Developer, Samba Team            http://samba.org
Student Network Administrator, Hawker College   abartlet at hawkerc.net
-------------- 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 : http://lists.samba.org/archive/samba-technical/attachments/20041009/e13694b6/attachment.bin


More information about the samba-technical mailing list