Hello,
I don’t succeed to create a user with a POST request using a basic http authentication and following endpoint
http:///univention/udm/users/user
I use also following template as body for my POST request:
{
“position”: “cn=users,dc=mydomain,dc=intranet”,
“objectType”: “users/user”,
“options”: {
“pki”: false
},
“policies”: {
“policies/pwhistory”: ,
“policies/umc”: ,
“policies/desktop”:
},
“properties”: {
“mobileTelephoneNumber”: ,
“certificateSubjectOrganisationalUnit”: null,
“groups”: ,
“sambahome”: null,
“departmentNumber”: ,
“certificateSerial”: null,
“certificateSubjectCommonName”: null,
“primaryGroup”: “cn=Domain Users,cn=groups,dc=mydomain,dc=intranet”,
“uidNumber”: null,
“disabled”: false,
“unlock”: false,
“street”: null,
“postcode”: null,
“scriptpath”: null,
“sambaPrivileges”: ,
“description”: null,
“certificateIssuerCommonName”: null,
“mailForwardCopyToSelf”: false,
“employeeType”: null,
“homedrive”: null,
“overridePWLength”: null,
“title”: null,
“mailAlternativeAddress”: ,
“userCertificate”: null,
“organisation”: null,
“homeSharePath”: “”,
“certificateIssuerOrganisationalUnit”: null,
“e-mail”: ,
“userexpiry”: null,
“pwdChangeNextLogin”: false,
“mailHomeServer”: null,
“unixhome”: “/home/”,
“gecos”: “”,
“sambaUserWorkstations”: ,
“preferredLanguage”: null,
“certificateIssuerState”: null,
“pagerTelephoneNumber”: ,
“username”: null,
“umcProperty”: ,
“certificateIssuerCountry”: null,
“homeTelephoneNumber”: ,
“shell”: “/bin/bash”,
“homePostalAddress”: ,
“firstname”: null,
“certificateIssuerOrganisation”: null,
“lastname”: null,
“city”: null,
“certificateSubjectMail”: null,
“mailForwardAddress”: ,
“phone”: ,
“gidNumber”: null,
“birthday”: null,
“employeeNumber”: null,
“objectFlag”: ,
“sambaLogonHours”: null,
“certificateSubjectLocation”: null,
“displayName”: “”,
“password”: null,
“lockedTime”: null,
“sambaRID”: null,
“secretary”: ,
“certificateSubjectOrganisation”: null,
“overridePWHistory”: null,
“mailPrimaryAddress”: null,
“country”: null,
“roomNumber”: ,
“certificateSubjectCountry”: null,
“locked”: false,
“certificateDateNotBefore”: null,
“passwordexpiry”: null,
“certificateVersion”: null,
“homeShare”: null,
“certificateIssuerMail”: null,
“unlockTime”: null,
“serviceprovider”: ,
“profilepath”: null,
“certificateIssuerLocation”: null,
“jpegPhoto”: null,
“certificateDateNotAfter”: null,
“certificateSubjectState”: null
}
}
I got always following Error:
{
“error”: {
“code”: 404,
“title”: “”,
“message”: “HTTP 404: Not Found”,
“error”: {}
},
“_links”: {
“self”: [
{
“title”: "HTTP-Error 404: ",
“href”: “http://test-ldap.bbc.local/univention/udm/users/user”
}
],
“curies”: [
{
“name”: “udm”,
“templated”: true,
“href”: “http://test-ldap.bbc.local/univention/udm/relation/{rel}”
}
]
}
}
Could someone know how it works ?