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
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.