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

Active Directory : query the user #16

Closed
zidekm opened this issue Jul 23, 2015 · 1 comment
Closed

Active Directory : query the user #16

zidekm opened this issue Jul 23, 2015 · 1 comment

Comments

@zidekm
Copy link

zidekm commented Jul 23, 2015

Hi,

i'm getting following error when i try to query ActiveDirectory ldap. Code is working with openldap without any problem.

auth_user = LdapUser.query.filter('name:'+username).first()

return self.view_functions[rule.endpoint](**req.view_args)

File "/webapps/kpimanager/app/views.py", line 40, in login
if not User.try_login(form.username.data, form.password.data):
File "/webapps/kpimanager/app/models.py", line 42, in try_login
auth_user = LdapUser.query.filter('name:'+username).first()
File "/platform/python-2.7/lib/python2.7/site-packages/flask_ldapconn/query.py", line 70, in first
for entry in iter(self):
File "/platform/python-2.7/lib/python2.7/site-packages/flask_ldapconn/query.py", line 23, in iter
ldapentry = new_cls(dn=entry.entry_get_dn(),
AttributeError: 'NoneType' object has no attribute 'entry_get_dn'

@zidekm
Copy link
Author

zidekm commented Jul 23, 2015

i don't have a clue, but it started working OK. I'm thinking that there was problem on AD side.

@zidekm zidekm closed this as completed Jul 23, 2015
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

1 participant