Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nested groups not taken in mind #11

Open
whitlockjc opened this issue Nov 15, 2015 · 2 comments
Open

Nested groups not taken in mind #11

whitlockjc opened this issue Nov 15, 2015 · 2 comments

Comments

@whitlockjc
Copy link
Owner

"Simply remove line 189: elif (len(user) > 1): I suppose that len(user) with nested groups returns 0 Cheers, Vassil Vassilev"

Do not remove line 189, just reverse > to <.

@whitlockjc
Copy link
Owner Author

I'm using the following properties:

group_query = "objectClass=groupOfNames" group_member_attribute = "member" user_query = "objectClass=posixAccount" userid_attribute = "uid"

Group RDN's are 'CN's.

The user = query at the top of create_group_model lists but does not recurse the nested groups in my case.

Changing line 188 from elif (len(user) > 1): to elif (len(user) != 1): fixes recursive group checking in my case.

@mneeharika
Copy link

I'm facing the same issue even with the latest checkout. I would like to retrieve all the groups (nested DLS) from the parent DL (CN=ABC,OU=Users-DistributionGroups,DC=mycompany,DC=com).

When executing the script, all the nested DLs as shown in the warnings as below -

[WARNING]: subgroup not in search scope: CN=Sub-of-ABC,OU=Users-DistributionGroups,DC=mycomany,DC=com. This means you won't have all members in the SVN group: ABC.

How do I get all the groups inside a group (nested DLs of a DL) using this script? I was not able to retrieve complete DLs in my Org, because of the size limit errors (Error performing search: {'desc': 'Size limit exceeded'}).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants