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

get_object_details to take query_filter and fallback to LDAP_USER_OBJECT_FILTER or LDAP_GROUP_OBJECT_FILTER #58

Closed
jm66 opened this issue Dec 27, 2018 · 0 comments · Fixed by #59

Comments

@jm66
Copy link
Contributor

jm66 commented Dec 27, 2018

It'd be useful to provide queries to get_object_details at runtime. This provides flexibility when another query needs to be used temporarily without updating the global configuration. For example:

from app import ldap

user_dn_obj_filter = '(&(objectclass=inetOrgPerson)(entryDN=%s))'

ldap.get_object_details(user='cn=John Doe,ou=servauth-users,dc=users,dc=openldap,dc=org', query_filter=user_dn_obj_filter)

jm66 added a commit to jm66/flask-simpleldap that referenced this issue Dec 27, 2018
 to LDAP_USER_OBJECT_FILTER or LDAP_GROUP_OBJECT_FILTER
fixes alexferl#58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant