Return status code and message.
Adding LDAP search function.