ldap_bind removed from code