I am trying to search my LDAP directory and I am unable to search with substring filters when the value is a set of attributes and values.
Scenario:
In my python script, I am able to search the LDAP server. Therefore, I will omit code regarding the connection, DN configuration amongst others and focus on the Filter
.
Filter1: (works)
'(&(objectClass=person)(managedObjects=CN=SKSOBHEE-MOBL,OU=Mobile,OU=Production,OU=Windows 7,OU=IT Client,OU=Resources,DC=emea,DC=xx,DC=yy,DC=com)(objectClass=organizationalPerson)(objectClass=user))'
Filter2: (fails)
'(&(objectClass=person)(managedObjects=CN=SKSOBHEE-MOBL*)(objectClass=organizationalPerson)(objectClass=user))'
Searching with Filter1 returns a user but fails with Filter2 when I use the substring.
Searching is done using:
l.search_s(BASE_DN, SCOPE, Filter1, Attrs)
I would appreciate some help on this!
Thank you.