[RESOLVED] Re: Migrate to 2.0 API - Help w/ PW Policy Control

2021-06-24 Thread Shawn McKinney
> On Jun 23, 2021, at 11:26 PM, Emmanuel Lécharny wrote: > > > On 23/06/2021 17:32, Shawn McKinney wrote: >> Next up on migration tasks, howto process password policy control returned >> from the server. >> The 1.x way >>

Re: Migrate to 2.0 API - Help w/ PW Policy Control

2021-06-23 Thread Emmanuel Lécharny
On 23/06/2021 17:32, Shawn McKinney wrote: Next up on migration tasks, howto process password policy control returned from the server. The 1.x way [UserDAO](https://github.com/apache/directory-fortress-core/blob/master/src/main/java/org/apache/directory/fortress/core/impl/UserDAO.java):

[Solved] Re: Migrate to 2.0 API - Help w/ PW Policy Control

2021-06-23 Thread Shawn McKinney
Found a better test to follow. [AbstractPasswordPolicyResponder](https://github.com/apache/directory-ldap-api/blob/master/ldap/client/api/src/main/java/org/apache/directory/ldap/client/template/AbstractPasswordPolicyResponder.java) Processing response control like this: ``` protected

Re: Migrate to 2.0 API

2021-06-23 Thread Shawn McKinney
> On Jun 22, 2021, at 2:01 PM, Stefan Seelmann wrote: > > On 6/22/21 3:47 PM, Shawn McKinney wrote: >> I switched from this://PoolableObjectFactory >> poolFactory = new ValidatingPoolableLdapConnectionFactory( config ); >> >> To: >> PooledObjectFactory poolFactory = new >>

Re: Migrate to 2.0 API

2021-06-22 Thread Stefan Seelmann
On 6/22/21 3:47 PM, Shawn McKinney wrote: > I switched from this://PoolableObjectFactory > poolFactory = new ValidatingPoolableLdapConnectionFactory( config ); > > To: > PooledObjectFactory poolFactory = new > ValidatingPoolableLdapConnectionFactory( config ); > > But can’t use these:

Migrate to 2.0 API

2021-06-22 Thread Shawn McKinney
Hello, I am finally taking on the task of migrating the Fortress Core to use Apache LDAP API! So, I have found this: https://directory.apache.org/api/migration-guide.html Which did help me get started. Actually, the code compiles (in this branch):