This is a rest api communicating with a ldap server. You can use it to perform ldap operations from a frontend application via http requests. It is written in PHP. Therefore, also consider the PHP LDAP Documentation
To set the proper CORS headers, provide an environment variable named "ALLOW_ORIGINS" containing a comma-seperated list of domain names which will be returned in Access-Control-Allow-Origin header.
The LDAP Server address is provided as ldap uri via the X-LDAP-URI header. Anonymous binds are currently not supported. Therefore, you need to provide valid bind credentials via HTTP Basic Auth.
All requests have to be POST requests of type application/json. The body has to contain all parameters.
Url: https://ldap.api.myfdweb.de/add
Parameters:
dn
The distinguished name of the new ldap entryentry
An object containing key value pairs according to schema
Url: https://ldap.api.myfdweb.de/delete
Parameters:
dn
The distinguished name of the ldap entry to be deleted
Url: https://ldap.api.myfdweb.de/modify
Parameters:
dn
The distinguished name of the ldap entry to be modifiedentry
An object containing key value pairs according to schema
Url: https://ldap.api.myfdweb.de/search
Parameters:
base
The ldap query basescope
The search scope. Can either be base, one or subtree.filter
The ldap query filterattributes
A list of attributes to be returned. If empty all attributes will be returned
Returns: A list of matching ldap entries. (Template: { "dn": { "attribute": "value" } }
)
Url: https://ldap.api.myfdweb.de/passwd
Parameters:
user
The distinguished name of the new ldap entrypassword
The new password to be set
Url: https://ldap.api.myfdweb.de/rename
Parameters:
dn
The distinguished name of the ldap entry to be renamednew_dn
The new distinguished name for the ldap entrynew_parent
The new parent element for the ldap entry