spring-projects / spring-projects/spring-ldap

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

Open
#720 1 comment 0 reactions 1 assignee View on GitHub

@jzheaux is already working on this.

Since Feb 15, 2024.

in: core
Dominant language
Java
Stars
375
Forks
501
Avg merge
6h 4m
Merged PRs (30d)
63

Description

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

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.