- LDAP_URL : The URL of the LDAP server (including the ldap protocol). E.g.
ldap://testing.feedhenry.com
- DN_PREFIX: A prefix to be added before the username. E.g.
CN=
- DN: A suffix to be added after the user name. E.g.
,CN=Roles,CN=LDAPtest,DC=feedhenry,DC=com
Validate a user against a LDAP server
Endpoint | /cloud/auth |
HTTP Method | POST |
{
"username": "users username",
"password": "users password"
}
{
"status": "ok",
"message": "Successfully Authenticated"
}
{
"status": "unauthorised",
"message": {
"dn": "",
"code": "Error Code",
"name": "The authorisation error name",
"message": "The authorisation error message"
}
}
{
"status": "error",
"message": "You need to provide a username and password."
}
All the tests are in the "test/" directory. The cloud app is using mocha as the test runner.
npm run serve
npm run unit
or
npm run test
npm run coverage