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

Fix : NoneType error on user not found #7

Merged
merged 2 commits into from
Sep 30, 2013

Conversation

cyrilleJ
Copy link
Contributor

Return "None" of function find_contact_entry was not managed and forced
the module to stop and lock all AD connections :
[WebUI] The mod ActiveDir_UI raise an exception: argument of type
'NoneType' is not iterable, I'm tagging it to restart later

Return "None" of function find_contact_entry was not managed and forced
the module to stop and lock all AD connections :
[WebUI] The mod ActiveDir_UI raise an exception: argument of type
'NoneType' is not iterable, I'm tagging it to restart later
@@ -228,6 +228,10 @@ def check_auth(self, user, password):
# with j.gabes@google.com for example
elts = self.find_contact_entry(c)

# no user found, exit
if elts is None:
return false
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should be False, not false :)

@naparuba
Copy link
Member

Thanks :)

naparuba added a commit that referenced this pull request Sep 30, 2013
Fix : NoneType error on user not found
@naparuba naparuba merged commit ab4e663 into shinken-monitoring:master Sep 30, 2013
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