Fixing ldap authentication on blank password.
Fixing rights.
Merge pull request #873 from ngodfraind/master

bugfixes