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

Use supported LDAP search_scope (SOFTWARE-5766) #3531

Conversation

brianhlin
Copy link
Member

Unhelpfully missing from the Python documentation (https://ldap3.readthedocs.io/en/latest/searches.html):
BASE: retrieves attributes of the entry specified in the search_base.
LEVEL: retrieves attributes of the entries contained in the search_base. The base must reference a container object.
SUBTREE: retrieves attributes of the entries specified in the search_base and all subordinate containers downward.

Unhelpfully missing from the Python documentation (https://ldap3.readthedocs.io/en/latest/searches.html):

BASE: retrieves attributes of the entry specified in the search_base.
LEVEL: retrieves attributes of the entries contained in the search_base. The base must reference a container object.
SUBTREE: retrieves attributes of the entries specified in the search_base and all subordinate containers downward.
@brianhlin
Copy link
Member Author

FYI @williamnswanson

@matyasselmeci
Copy link
Collaborator

Hang on, shouldn't the scope be ldap3.LEVEL ? The docs page you linked show them using constants, not string literals.

@brianhlin
Copy link
Member Author

lol https://github.com/cannatag/ldap3/blob/dev/ldap3/__init__.py#L55

I'll fix it just to be safe

@brianhlin brianhlin merged commit 5f88596 into opensciencegrid:master Dec 18, 2023
2 checks passed
@brianhlin brianhlin deleted the SOFTWARE-5766.missing-comanage-contacts branch December 18, 2023 23:32
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

Successfully merging this pull request may close these issues.

2 participants