Re: Migration to 2.0 API has moved onto something a bit more relaxing

2021-06-23 Thread Emmanuel Lécharny
On 24/06/2021 06:25, Stefan Seelmann wrote: On 6/24/21 4:10 AM, Shawn McKinney wrote: The debugger tells me that api request controls are loaded in

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):

Re: Migration to 2.0 API has moved onto something a bit more relaxing

2021-06-23 Thread Shawn McKinney
The debugger tells me that api request controls are loaded in [StockCodecFactoryUtil](https://github.com/apache/directory-ldap-api/blob/master/ldap/codec/core/src/main/java/org/apache/directory/api/ldap/codec/StockCodecFactoryUtil.java) So, I added my RelaxControl into the api code space, and

Migration to 2.0 API has moved onto something a bit more relaxing

2021-06-23 Thread Shawn McKinney
Onto the next problem… As described back in April on this ML: [Relax Control and password policies](http://mail-archives.apache.org/mod_mbox/directory-api/202104.mbox/%3CECC48E64-6CF9-40B7-8BC4-FCE60E40684E%40apache.org%3E) I added support to use the Relax Control to the fortress core code

[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 >>