Ldaptive 1.2:resolveEntryWithBindCredentials?

36 views
Skip to first unread message

Misagh

unread,
Jul 27, 2016, 3:23:46 PM7/27/16
to ldap...@googlegroups.com
I am curious how resolveEntryWithBindCredentials is handled by ldaptive 1.2. I don't see a boolean flag in the code anywhere; just in the schemas, and schemas seem to create a SearchEntryResolver or a PooledSearchEntryResolver.

Is the behavior that flag controls part of either those 2 classes now in v1.2? Or is that behavior controlled elsewhere I am not seeing? 

Thanks. 

--
- Misagh

Daniel Fisher

unread,
Jul 27, 2016, 4:59:05 PM7/27/16
to ldap...@googlegroups.com
Both the bind-search-authenticator[1] and the ad-authenticator[2] overload the parseEntryResolver method. If resolveEntryWithBindCredentials=true, then the same connection factory used for DN resolution should be used for entry resolution.

--
You received this message because you are subscribed to the Google Groups "ldaptive" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ldaptive+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Misagh

unread,
Jul 28, 2016, 6:13:59 AM7/28/16
to ldap...@googlegroups.com
Thanks. That is specific to the XML schema then; if I wanted to bootstrap this sort of functionality in Java directly, as you indicated, I'd have to use the same connection factory for entry resolution, right? 

If so, it would be more comfortable if I were given a <something>.setResolveEntryWithBindCredentials(boolean) kind of call perhaps on the authenticator object itself somewhere. 
--
- Misagh

Daniel Fisher

unread,
Jul 28, 2016, 9:37:09 AM7/28/16
to ldap...@googlegroups.com
Correct.
However, I don't see a need for any helper methods on the base objects. That switch only exists in the schema because you don't have the control to make that sort of wiring happen. If you're working directly with the objects you have all the flexibility you need. I think it's more natural to see the same connection factory get wired to both resolvers.

--Daniel Fisher

Misagh Moayyed

unread,
Jul 28, 2016, 3:05:19 PM7/28/16
to ldap...@googlegroups.com
That’s fair. Thanks. 

-- 
Misagh
Reply all
Reply to author
Forward
0 new messages