Minor changes

Improved some LDAP functions [instead of calling a function, the admin
can select if LDAP is used or not]