fixed ldap commands
deactivated unused code