8.2. Protocol HTTP for UMC#
With the new generation of UMC there is also an HTTP server available that can be used to access the UMC server.
POST http://192.0.2.31/univention/auth HTTP/1.1
{"options": {"username": "root", "password": "univention"}}
Request:
POST http://192.0.2.31/univention/command/udm/query HTTP/1.1
{"options": {"container": "all",
"objectType":"users/user",
"objectProperty":"username",
"objectPropertyValue":"test1*1"},
"flavor":"users/user"}
Response:
{"status": 200,
"message": null,
"options": {"objectProperty": "username",
"container": "all",
"objectPropertyValue": "test1*1",
"objectType": "users/user"},
"result": [{"ldap-dn": "uid=test11,cn=users,dc=univention,dc=qa",
"path": "univention.qa:/users",
"name": "test11",
"objectType": "users/user"},
...
{"ldap-dn": "uid=test191,cn=users,dc=univention,dc=qa",
"path": "univention.qa:/users",
"name": "test191",
"objectType": "users/user"}]}