Here is the error:
org.springframework.ldap.InvalidSearchFilterException: Unbalanced parenthesis; nested exception is javax.naming.directory.InvalidSearchFilterException: Unbalanced parenthesis; remaining name 'DC=xx,DC=xx,DC=xx'
The exception is on the base DN which is DC=xx,DC=xx,DC=xx.
There are no parenthesis in the base DN at all.
The object filter that I have is formatted correctly:
(&(objectClass=user)(userPrincipalName=*)(!sAMAccountName=*-*))
The group filter that I have is formatted correctly:
(&(objectClass=group)(|(cn=xx)(cn=xy)))
There are no other LDAP strings in the settings.
Hi Lisa,
The problem is related to the filter: (&(objectClass=user)(userPrincipalName=*)(!sAMAccountName=*-*))
More specifically the exclamation mark ("!") in front of the sAMAccountName attribute.
You may try this other filter:
(&(objectClass=user)(userPrincipalName=*)(!(sAMAccountName=*-*)))
Cheers
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.