Added LDAP functionality.