Saviynt unveils its cutting-edge Intelligence Suite products to revolutionize Identity Security!
Click HERE to see how Saviynt Intelligence is transforming the industry.
Saviynt Copilot Icon

Error creating group javax.naming.directory.NoSuchAttributeException: LDAP: error code 16 - 00000057

AdrianMarchis
New Contributor III
New Contributor III

Hello,

 

We're using a JSON using the following format to create groups from Saviynt and add them to AD. The service account has the required permissions but the flow keeps erroring out constantly:

{
  "cn": "${role?.customproperty27}",
  "objectCategory": "CN=Group,CN=Schema,CN=Configuration,dc=sav,dc=com",
  "displayName": "${role?.displayname}",
  "sAMAccountName": "${role?.customproperty27}",
  "description": "${role?.description}",
  "objectClass": "group",
  "name": "${role?.customproperty27}"
}

I tried running the JSON with minimal mappings (only CN and SAMAccountName), but it also failed.

This is the full error we're encountering:

javax.naming.directory.NoSuchAttributeException: [LDAP: error code 16 - 00000057: LdapErr: DSID-0C091363, comment: Error in attribute conversion operation, data 0, v4563]; remaining name 'CN=Test_Entitlement_05,dc=testenv,dc=com' at com.sun.jndi.ldap.LdapCtx.mapErrorCode(LdapCtx.java:3282) at com.sun.jndi.ldap.LdapCtx.processReturnCode(LdapCtx.java:3207) at com.sun.jndi.ldap.LdapCtx.processReturnCode(LdapCtx.java:2998) at com.sun.jndi.ldap.LdapCtx.c_createSubcontext(LdapCtx.java:840) at com.sun.jndi.toolkit.ctx.ComponentDirContext.p_createSubcontext(ComponentDirContext.java:341) at com.sun.jndi.toolkit.ctx.PartialCompositeDirContext.createSubcontext(PartialCompositeDirContext.java:268) at com.sun.jndi.toolkit.ctx.PartialCompositeDirContext.createSubcontext(PartialCompositeDirContext.java:256) at javax.naming.directory.InitialDirContext.createSubcontext(InitialDirContext.java:197) at com.saviynt.ldap.SaviyntGroovyLdapService.createGroup(SaviyntGroovyLdapService.groovy:8184) at com.saviynt.ldap.SaviyntGroovyLdapService.createOrUpdateGroups(SaviyntGroovyLdapService.groovy:7980) at com.saviynt.ldap.SaviyntGroovyLdapService.createEntitlementGLDAP(SaviyntGroovyLdapService.groovy:7655) at com.saviynt.ecm.services.ArsTaskService.createEntitlementTarget(ArsTaskService.groovy:16803) at com.saviynt.ecm.services.ArsTaskService$_processParentTask_closure206.doCall(ArsTaskService.groovy:17064) at com.saviynt.ecm.services.ArsTaskService.processParentTask(ArsTaskService.groovy:17054) at com.saviynt.ecm.services.ArsTaskService.createEntitlement(ArsTaskService.groovy:16861) at com.saviynt.ecm.services.ArsTaskHelperService$_completeAutoProvTasksUpgraded_closure1.doCall(ArsTaskHelperService.groovy:212) at com.saviynt.ecm.services.ArsTaskHelperService.completeAutoProvTasksUpgraded(ArsTaskHelperService.groovy:160) at MultipleProvisioningJob.execute(MultipleProvisioningJob.groovy:222) at org.quartz.core.JobRunShell.run(JobRunShell.java:199) at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:546)

Please let me know if further information is needed.

 

Thank you! Looking forward to the replies.

14 REPLIES 14

rushikeshvartak
All-Star
All-Star

Validate if role have Cp27 and displayname Provide screenshot


Regards,
Rushikesh Vartak
If this helped you move forward, click 'Kudos'. If it solved your query, select 'Accept As Solution'.

NM
Honored Contributor III
Honored Contributor III

Hi @AdrianMarchis ,

Check cp27 value if it is been passed as null it won't work


If this helped you move forward, click 'Kudos'. If it solved your query, select 'Accept As Solution'

AdrianMarchis
New Contributor III
New Contributor III

Hello, @NM @rushikeshvartak CustomProperty27 has a value. 

Screenshot:

Screenshot 2024-07-22 215611.png

what about displayname & description


Regards,
Rushikesh Vartak
If this helped you move forward, click 'Kudos'. If it solved your query, select 'Accept As Solution'.

AdrianMarchis
New Contributor III
New Contributor III

Both fields are/were tested filled and empty, failed too, same error.

Does role have values ?


Regards,
Rushikesh Vartak
If this helped you move forward, click 'Kudos'. If it solved your query, select 'Accept As Solution'.

flegare
Regular Contributor III
Regular Contributor III

I've never used this specific function of Saviynt but I did get such an error in the past when the distinguishedName was not properly defined.  Looking at the doc, I see no parameter to define the DN... where is that set, exactly?

Does role have displayname / Description ?


Regards,
Rushikesh Vartak
If this helped you move forward, click 'Kudos'. If it solved your query, select 'Accept As Solution'.

AdrianMarchis
New Contributor III
New Contributor III

@rushikeshvartak Yes, the role has a displayname / description

Share full logs  in text file when you run wsretry


Regards,
Rushikesh Vartak
If this helped you move forward, click 'Kudos'. If it solved your query, select 'Accept As Solution'.

AdrianMarchis
New Contributor III
New Contributor III

Will test again and provide logs soon.

Thank you!

AdrianMarchis
New Contributor III
New Contributor III

@rushikeshvartak Attached are the logs exported for a failed group creation. Role values, Display name and Description were filled with data.

Incorrect objectCategory Attribute:

  • Issue: The objectCategory is typically set to a predefined value in Active Directory. The value CN=Builtin,dc=deluxetest1,dc=com appears to be incorrect for group creation.
  • Solution: For group creation, objectCategory is usually not required or should be set to CN=Group,CN=Schema,CN=Configuration,DC=domain,DC=com. Verify with your LDAP schema documentation for the correct value.

Regards,
Rushikesh Vartak
If this helped you move forward, click 'Kudos'. If it solved your query, select 'Accept As Solution'.

AdrianMarchis
New Contributor III
New Contributor III

That fixed it.