I did a quick search, but didn't see this mentioned...
I found a small issue with org.springframework.ldap.pool.validation.DefaultDi rContextValidator that will result in validateDirContext() failing for many/most LDAP implementations. The cause is that the root context search is being attempted with a search scope of SearchControls.ONELEVEL_SCOPE, the default scope when the scope isn't specified. This may succeed for some LDAP implementations (I think it should for Domino), but will fail for e.g., Active Directory and SunONE.
The fix is to add
to the constructor. Already done in our DirContextValidator that's based on DefaultDirContextValidator, but changing the 'example code' might save someone a little frustration.Code:this.searchControls.setSearchScope(SearchControls.OBJECT_SCOPE);


Reply With Quote
