Skip to content

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

Open
@mickhause

Description

@mickhause

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

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions