pyad icon indicating copy to clipboard operation
pyad copied to clipboard

Getting members of large groups

Open cblomart opened this issue 8 years ago • 3 comments

ADSI limits returned objects of multi valued attributes (Windows 2000 limits to 1000 and Windows 2003 an onwards limits to 1500)

Getting group members and/or syncing them causes problem for large groups.

See: https://msdn.microsoft.com/en-us/library/ms676302 https://msdn.microsoft.com/en-us/library/aa772308

To reproduce simply create a group with more than 1500 members.

cblomart avatar Jul 24 '17 20:07 cblomart

Same problem with 0.5.2. Any solution to this?

groovnva avatar Oct 05 '19 17:10 groovnva

Microsoft references range request.

An other way would be to make ldap query:

  • memberOf=#OU of the group#

cblomart avatar Oct 06 '19 11:10 cblomart

I'm new to working with AD with Python. I can use the ADQuery to get the group CN but not sure how to get to the members.

Do you have an example of using memberOf=?

On Sun, Oct 6, 2019 at 7:21 AM Blomart Cédric [email protected] wrote:

Microsoft references range request.

An other way would be to make ldap query:

  • memberOf=

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/zakird/pyad/issues/74?email_source=notifications&email_token=AJVKIZOUCGQOTS2O76JVS2TQNHC5NA5CNFSM4DUG2AB2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEAOHWHY#issuecomment-538737439, or mute the thread https://github.com/notifications/unsubscribe-auth/AJVKIZMXQ6GBFAZYAYQGUQ3QNHC5NANCNFSM4DUG2ABQ .

-- -Andy

groovnva avatar Oct 06 '19 21:10 groovnva