(refs #335)Fix LDAP authentication