My Oracle Support Banner

OUD 12c: When Deleting an Entry from OUD Using Curl and User Account, Fails with "HTTP/1.1 401 Unauthorized" and "...insufficient access rights",""ldapErrorCode":50" (Doc ID 3057312.1)

Last updated on NOVEMBER 12, 2024

Applies to:

Oracle Unified Directory - Version 12.2.1.4.0 and later
Information in this document applies to any platform.

Symptoms

 When try to delete user from a container like "cn=OracleContext,[REALM_DN]" the following happen:

$ curl -i -X DELETE -u '[DN_NORMAL_USER]':[USERPASSWORD] -H Content-type:application/json https:///[OUD_HOSTNAME]:[PORT]/rest/v1/directory/cn=[ENTRY],cn=OracleContext,[REALM_DN]
HTTP/1.1 401 Unauthorized
Date: Fri, 28 Jun 2024 10:34:12 GMT
Content-Type: application/json
Content-Length: 209
Server: Jetty(9.4.51.v20230217)

{"msgType":"urn:ietf:params:rest:schemas:oracle:oud:1.0:ErrorMessage","message":"The entry cn=[ENTRY],cn=OracleContext,[REALM_DN] cannot be deleted due to insufficient access rights","ldapErrorCode":50}

 

Changes

 Try to delete an entry from a container, via curl using a normal user.

Cause

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Symptoms
Changes
Cause
Solution
References


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.