[python-ldap] Retrieving Members in a large security group

Gary Olivera gary21490 at gmail.com
Sat Jul 13 00:18:03 CEST 2013


Hi guys,

I have recently been using the search feature to query for users in OUs and
members in security groups. My member search query for security groups
works on smaller groups, but when I run the query on big groups it just
returns an error.

attrs = ['member']
filter =
(&(objectCategory=group)(distinguishedName=cn=MyGroup,dc=foo,dc=bar))
search_dn = 'cn=MyGroup,dc=foo,dc=com'

I have implemented paged querying for OUs and that works correctly. I
haven't been able to get that to work with security groups. Am I going down
the right path? How does one deal with security groups with many members.

Any guidance would be greatly appreciated.

Best,
Gary
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ldap/attachments/20130712/60729b97/attachment-0001.html>


More information about the python-ldap mailing list