RE: 2 issues with Password policy response warnings / types
That's excellent!!! Been going nuts with this password policy stuff. Thank you! Regards, Carlo Accorsi -Original Message- From: Emmanuel Lécharny [mailto:elecha...@gmail.com] Sent: Friday, June 22, 2012 5:15 PM To: users@directory.apache.org Subject: Re: 2 issues with Password policy response warnings / types Le 6/22/12 10:54 PM, carlo.acco...@ibs-ag.com a écrit : Thanks that's great! There is also a class that handle all the decoding and creates a plain Java object with all the expected data : DefaultLdapCodecService codec = new DefaultLdapCodecService(); PasswordPolicyDecorator control = new PasswordPolicyDecorator( codec, true ); // bb contains the received bytes : ByteBuffer bb = ByteBuffer.allocate( 0xA ); bb.put( new byte[] { 0x30, 0x08, ( byte ) 0xA0, 0x03, // timeBeforeExpiration ( byte ) 0x80, 0x01, 0x01, ( byte ) 0x81, 0x01, 0x01 // ppolicyError } ); bb.flip(); PasswordPolicy passwordPolicy = ( PasswordPolicy ) control.decode( bb.array() ); Here, you can no do : if ( passwordPolicy.hasResponse() ) { int expiration = passwordPolicy.getResponse().getTimeBeforeExpiration(); int error = passwordPolicy.getResponse().getPasswordPolicyError().getValue(); } -- Regards, Cordialement, Emmanuel Lécharny www.iktek.com
Re: FW: Hi Again, substring searches among 80K entires - still an issue
Le 6/23/12 11:52 AM, carlo.acco...@ibs-ag.com a écrit : Hi, using the api and the trunk, we're seeing the same result. Any ideas here? Send me on a mission. We'll go do any grunt work. Thanks. Again, if I ldif export / import the user, it can then be found again via substring search. Will give it a try tomorrow, rain is expecting to pour here. Right now, sun is shining, my GF is pushing me with a fork so that I mow the grass... -- Regards, Cordialement, Emmanuel Lécharny www.iktek.com
RE: FW: Hi Again, substring searches among 80K entires - still an issue
Get outside!!! Thanks! Regards, Carlo Accorsi -Original Message- From: Emmanuel Lécharny [mailto:elecha...@gmail.com] Sent: Saturday, June 23, 2012 7:30 AM To: users@directory.apache.org Subject: Re: FW: Hi Again, substring searches among 80K entires - still an issue Le 6/23/12 11:52 AM, carlo.acco...@ibs-ag.com a écrit : Hi, using the api and the trunk, we're seeing the same result. Any ideas here? Send me on a mission. We'll go do any grunt work. Thanks. Again, if I ldif export / import the user, it can then be found again via substring search. Will give it a try tomorrow, rain is expecting to pour here. Right now, sun is shining, my GF is pushing me with a fork so that I mow the grass... -- Regards, Cordialement, Emmanuel Lécharny www.iktek.com