spring-ldap icon indicating copy to clipboard operation
spring-ldap copied to clipboard

ODM : @Entry(base) don't work for AD's objectClasses = {"top", "group"}

Open mickhause opened this issue 2 years ago • 1 comments
trafficstars

Hello, I'm encountering a problem with @Entry's base attribute for Active Directory groups and ODM :

@Entry(objectClasses = {"top", "group"}, base = "OU=***,OU=***,DC=***,DC=***")

nested exception is javax.naming.NameNotFoundException: [LDAP: error code 32 - 0000208D: NameErr: DSID-03100220, problem 2001 (NO_OBJECT), data 0, best match of: '' ]; remaining name '/'

It works perfectly with "person" objectClass in the same path :

@Entry(objectClasses = {"top", "person"}, base = "OU=***,OU=***,DC=***,DC=***")

Groups are working after remove of "base" attribute and put the base path in the properties :

spring.ldap.base=DC=***,DC=***

But in the future I need to work with different bases depending of the objectClass. Thank you

Regards

mickhause avatar Jan 12 '23 12:01 mickhause