Announcing the Saviynt Knowledge Exchange unifying the Saviynt forums, documentation, training,
and more in a single search tool across platforms. Read the announcement here.

Getting Exception ctx.search: java.lang.ArrayIndexOutOfBoundsException, in AD connector

sangitaladi
Regular Contributor
Regular Contributor

Hi team

 

Recently , configured  Advance_filter_json in AD connector. added around 15 OUs with some filter criteria. But getting  error  ctx.search: java.lang.ArrayIndexOutOfBoundsException.

Any insights what could be the issue and any suggestions on the fix.

 

Regards

Sangita Ladi

5 REPLIES 5

pmahalle
All-Star
All-Star

@sangitaladi ,

Can you share your groupImportMapping json with advancedFilter.


Pandharinath Mahalle(Paddy)
If this reply helps your question, please consider selecting Accept As Solution and hit Kudos 🙂

sangitaladi
Regular Contributor
Regular Contributor

Here is the advance filter:

{
"AdvanceFilter": {
"OU=Ashion,OU=Users,OU=client,DC=domain,DC=local":
"(&(objectCategory=person)(objectClass=user)(!(sAMAccountName=*admin*))(!(sAMAccountName=*svc_*))(!(sAMAccountName=*Room*))(!(sn=*LAPTOP*))(!(extensionattribute9=*)))",
"OU=Badger Lab,OU=Users,OU=client,DC=domain,DC=local":
"(&(objectCategory=person)(objectClass=user)(!(sAMAccountName=*admin*))(!(sAMAccountName=*svc_*))(!(sAMAccountName=*Room*))(!(sn=*LAPTOP*))(!(extensionattribute9=*)))",
"OU=Charmany Lab,OU=Users,OU=client,DC=domain,DC=local":
"(&(objectCategory=person)(objectClass=user)(!(sAMAccountName=*admin*))(!(sAMAccountName=*svc_*))(!(sAMAccountName=*Room*))(!(sn=*LAPTOP*))(!(extensionattribute9=*)))",
"OU=Consultants,OU=Users,OU=client,DC=domain,DC=local":
"(&(objectCategory=person)(objectClass=user)(!(sAMAccountName=*admin*))(!(sAMAccountName=*svc_*))(!(sAMAccountName=*Room*))(!(sn=*LAPTOP*))(!(extensionattribute9=*)))",
"OU=Genomic,OU=Users,OU=client,DC=domain,DC=local":
"(&(objectCategory=person)(objectClass=user)(!(sAMAccountName=*admin*))(!(sAMAccountName=*svc_*))(!(sAMAccountName=*Room*))(!(sn=*LAPTOP*))(!(extensionattribute9=*)))",
"OU=Office,OU=Users,OU=client,DC=domain,DC=local":
"(&(objectCategory=person)(objectClass=user)(!(sAMAccountName=*admin*))(!(sAMAccountName=*svc_*))(!(sAMAccountName=*Room*))(!(sn=*LAPTOP*))(!(extensionattribute9=*)))",
"OU=Okta Consultants,OU=Users,OU=client,DC=domain,DC=local":
"(&(objectCategory=person)(objectClass=user)(!(sAMAccountName=*admin*))(!(sAMAccountName=*svc_*))(!(sAMAccountName=*Room*))(!(sn=*LAPTOP*))(!(extensionattribute9=*)))",
"OU=Omicera,OU=Users,OU=client,DC=domain,DC=local":
"(&(objectCategory=person)(objectClass=user)(!(sAMAccountName=*admin*))(!(sAMAccountName=*svc_*))(!(sAMAccountName=*Room*))(!(sn=*LAPTOP*))(!(extensionattribute9=*)))",
"OU=Paradigm,OU=Users,OU=client,DC=domain,DC=local":
"(&(objectCategory=person)(objectClass=user)(!(sAMAccountName=*admin*))(!(sAMAccountName=*svc_*))(!(sAMAccountName=*Room*))(!(sn=*LAPTOP*))(!(extensionattribute9=*)))",
"OU=Partners,OU=Users,OU=client,DC=domain,DC=local":
"(&(objectCategory=person)(objectClass=user)(!(sAMAccountName=*admin*))(!(sAMAccountName=*svc_*))(!(sAMAccountName=*Room*))(!(sn=*LAPTOP*))(!(extensionattribute9=*)))",
"OU=Prevention Genetics,OU=Users,OU=client,DC=domain,DC=local":
"(&(objectCategory=person)(objectClass=user)(!(sAMAccountName=*admin*))(!(sAMAccountName=*svc_*))(!(sAMAccountName=*Room*))(!(sn=*LAPTOP*))(!(extensionattribute9=*)))",
"OU=Remote,OU=Users,OU=client,DC=domain,DC=local":
"(&(objectCategory=person)(objectClass=user)(!(sAMAccountName=*admin*))(!(sAMAccountName=*svc_*))(!(sAMAccountName=*Room*))(!(sn=*LAPTOP*))(!(extensionattribute9=*)))",
"OU=Resolution Bioscience,OU=Users,OU=client,DC=domain,DC=local":
"(&(objectCategory=person)(objectClass=user)(!(sAMAccountName=*admin*))(!(sAMAccountName=*svc_*))(!(sAMAccountName=*Room*))(!(sn=*LAPTOP*))(!(extensionattribute9=*)))",
"OU=SAN,OU=Users,OU=client,DC=domain,DC=local":
"(&(objectCategory=person)(objectClass=user)(!(sAMAccountName=*admin*))(!(sAMAccountName=*svc_*))(!(sAMAccountName=*Room*))(!(sn=*LAPTOP*))(!(extensionattribute9=*)))",
"OU=Thrive,OU=Users,OU=client,DC=domain,DC=local":
"(&(objectCategory=person)(objectClass=user)(!(sAMAccountName=*admin*))(!(sAMAccountName=*svc_*))(!(sAMAccountName=*Room*))(!(sn=*LAPTOP*))(!(extensionattribute9=*)))"
}
}

Hi @sangitaladi ,

Filter needs to be in the list for each OU. Can you try below and check once.

{
"AdvanceFilter": {
"OU=Ashion,OU=Users,OU=client,DC=domain,DC=local": [
"(&(objectCategory=person)(objectClass=user)(!(sAMAccountName=*admin*))(!(sAMAccountName=*svc_*))(!(sAMAccountName=*Room*))(!(sn=*LAPTOP*))(!(extensionattribute9=*)))"
],
"OU=Badger Lab,OU=Users,OU=client,DC=domain,DC=local": [
"(&(objectCategory=person)(objectClass=user)(!(sAMAccountName=*admin*))(!(sAMAccountName=*svc_*))(!(sAMAccountName=*Room*))(!(sn=*LAPTOP*))(!(extensionattribute9=*)))"
],
"OU=Charmany Lab,OU=Users,OU=client,DC=domain,DC=local": [
"(&(objectCategory=person)(objectClass=user)(!(sAMAccountName=*admin*))(!(sAMAccountName=*svc_*))(!(sAMAccountName=*Room*))(!(sn=*LAPTOP*))(!(extensionattribute9=*)))"
],
"OU=Consultants,OU=Users,OU=client,DC=domain,DC=local": [
"(&(objectCategory=person)(objectClass=user)(!(sAMAccountName=*admin*))(!(sAMAccountName=*svc_*))(!(sAMAccountName=*Room*))(!(sn=*LAPTOP*))(!(extensionattribute9=*)))"
],
"OU=Genomic,OU=Users,OU=client,DC=domain,DC=local": [
"(&(objectCategory=person)(objectClass=user)(!(sAMAccountName=*admin*))(!(sAMAccountName=*svc_*))(!(sAMAccountName=*Room*))(!(sn=*LAPTOP*))(!(extensionattribute9=*)))"
],
"OU=Office,OU=Users,OU=client,DC=domain,DC=local": [
"(&(objectCategory=person)(objectClass=user)(!(sAMAccountName=*admin*))(!(sAMAccountName=*svc_*))(!(sAMAccountName=*Room*))(!(sn=*LAPTOP*))(!(extensionattribute9=*)))"
],
"OU=Okta Consultants,OU=Users,OU=client,DC=domain,DC=local": [
"(&(objectCategory=person)(objectClass=user)(!(sAMAccountName=*admin*))(!(sAMAccountName=*svc_*))(!(sAMAccountName=*Room*))(!(sn=*LAPTOP*))(!(extensionattribute9=*)))"
],
"OU=Omicera,OU=Users,OU=client,DC=domain,DC=local": [
"(&(objectCategory=person)(objectClass=user)(!(sAMAccountName=*admin*))(!(sAMAccountName=*svc_*))(!(sAMAccountName=*Room*))(!(sn=*LAPTOP*))(!(extensionattribute9=*)))"
],
"OU=Paradigm,OU=Users,OU=client,DC=domain,DC=local": [
"(&(objectCategory=person)(objectClass=user)(!(sAMAccountName=*admin*))(!(sAMAccountName=*svc_*))(!(sAMAccountName=*Room*))(!(sn=*LAPTOP*))(!(extensionattribute9=*)))"
],
"OU=Partners,OU=Users,OU=client,DC=domain,DC=local": [
"(&(objectCategory=person)(objectClass=user)(!(sAMAccountName=*admin*))(!(sAMAccountName=*svc_*))(!(sAMAccountName=*Room*))(!(sn=*LAPTOP*))(!(extensionattribute9=*)))"
],
"OU=Prevention Genetics,OU=Users,OU=client,DC=domain,DC=local": [
"(&(objectCategory=person)(objectClass=user)(!(sAMAccountName=*admin*))(!(sAMAccountName=*svc_*))(!(sAMAccountName=*Room*))(!(sn=*LAPTOP*))(!(extensionattribute9=*)))"
],
"OU=Remote,OU=Users,OU=client,DC=domain,DC=local": [
"(&(objectCategory=person)(objectClass=user)(!(sAMAccountName=*admin*))(!(sAMAccountName=*svc_*))(!(sAMAccountName=*Room*))(!(sn=*LAPTOP*))(!(extensionattribute9=*)))"
],
"OU=Resolution Bioscience,OU=Users,OU=client,DC=domain,DC=local": [
"(&(objectCategory=person)(objectClass=user)(!(sAMAccountName=*admin*))(!(sAMAccountName=*svc_*))(!(sAMAccountName=*Room*))(!(sn=*LAPTOP*))(!(extensionattribute9=*)))"
],
"OU=SAN,OU=Users,OU=client,DC=domain,DC=local": [
"(&(objectCategory=person)(objectClass=user)(!(sAMAccountName=*admin*))(!(sAMAccountName=*svc_*))(!(sAMAccountName=*Room*))(!(sn=*LAPTOP*))(!(extensionattribute9=*)))"
],
"OU=Thrive,OU=Users,OU=client,DC=domain,DC=local": [
"(&(objectCategory=person)(objectClass=user)(!(sAMAccountName=*admin*))(!(sAMAccountName=*svc_*))(!(sAMAccountName=*Room*))(!(sn=*LAPTOP*))(!(extensionattribute9=*)))"
]
}
}


Pandharinath Mahalle(Paddy)
If this reply helps your question, please consider selecting Accept As Solution and hit Kudos 🙂

sangitaladi
Regular Contributor
Regular Contributor

thanks it worked.

Regards

Sangita Ladi

rushikeshvartak
All-Star
All-Star

Possible Causes and Fixes

  • Too Many OUs or Filters: If the connector has a limit on the number of OUs or the complexity of filters, exceeding this limit could cause an ArrayIndexOutOfBoundsException. Try reducing the number of OUs or simplify the filter criteria.
  • Incorrect JSON Formatting: Any small syntax error in the JSON could lead to parsing issues. Validate and reformat the JSON to ensure it’s correct.
  • Complex Filters: If filters are too complex, break them down into simpler components and test each part individually.

Regards,
Rushikesh Vartak
If you find the response useful, kindly consider selecting Accept As Solution and clicking on the kudos button.