fix Exception in LDAP authentication

https://github.com/MutonUfoAI/pgina/issues/8