spring-projects / spring-projects/spring-ldap
ODM : @Entry(base) don't work for AD's objectClasses = {"top", "group"}
@jzheaux is already working on this.
Since Feb 15, 2024.
- 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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.