shinken-monitoring / mod-auth-active-directory

Shinken module for UI authentification with Active Directory or OpenLDAP
GNU Affero General Public License v3.0
2 stars 5 forks source link

Bug : The mod ActiveDir_UI raise an exception #2

Closed DessaiImrane closed 10 years ago

DessaiImrane commented 11 years ago

I have Active_Dir module enabled. I'm using 1.2.4

When I try to connect with a new user, I have this exception.

Since then, no one can log in any more, as the module is never restarted.

I think it's just a matter of catching the excpetion without exiting the module to be more gentle

2013-07-10 09:59:55,279 [1373435995] Warning : [Active Directory UI] No result for exodata@exodata.lan
2013-07-10 09:59:55,283 [1373435995] Warning : [WebUI] The mod ActiveDir_UI raise an exception: argument of type 'NoneType' is not iterable, I'm tagging it to restart later
cyrilleJ commented 11 years ago

This exception lock AD connection as well :

2013-08-30 16:34:19,653 [1377873259] Warning : [WebUI] The mod ActiveDir_UI raise an exception: local variable 'account_name' referenced before assignment, I'm tagging it to restart later

cyrilleJ commented 10 years ago

This pull request should fix this issue : https://github.com/shinken-monitoring/mod-auth-active-directory/pull/7

DessaiImrane commented 10 years ago

I think it is solved. If the problem appears again i'll open a new issu.

Thanks.