Skip to content

Latest commit

 

History

History
20 lines (13 loc) · 512 Bytes

README.md

File metadata and controls

20 lines (13 loc) · 512 Bytes

idm-api

this api allows you to manage accounts within ldap instances.

examples

create account

curl -X POST \
  --header "Content-Type: application/json" \
  --data '{"username":"foo", "surname":"whatever","password":"foo"}' https://example.org/account

update password

export USERNAME=foo

curl -X POST \
  --header "Content-Type: application/json" \
  --data '{"old":"oldpw", "new": "newpw", "repeat":"newpw"}' \
  https://example.org/account/${USERNAME}/password