Protocol HTTP for UMC

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.

Listing 8.1 Authentication request#
POST http://192.0.2.31/univention/auth HTTP/1.1

{"options": {"username": "root", "password": "univention"}}

Request:

Listing 8.2 Search for users#
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:

Listing 8.3 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"}]}