Apply ldap.