Re: ppolicy control and change password exop (again)

Chris Ridd <[email protected]>
Newsgroups gmane.comp.lang.perl.modules.ldap
Message-ID <[email protected]>
On 26 May 2009, at 14:42, Guillaume Rousse wrote:

> Hello list.
>
> Some time ago, I had an issue with set_password() not handling  
> controls:
> http://www.nntp.perl.org/group/perl.ldap/2008/09/msg2950.html
>
> It was fixed in perl-ldap 0.38.
>
> I also opened an ITS in openldap, because apparently password modify  
> exop was not returning ppolicy control correctly:
> http://www.openldap.org/lists/openldap-bugs/200809/msg00178.html
>
> It was fixed in openldap 2.4.12
>
> However, it still doesn't work. The following test case shows than  
> the value returned by $response- 
> >control( LDAP_CONTROL_PASSWORDPOLICY ) is always '1', instead of an  
> instance of Net::LDAP::Control::PasswordPolicy class.

Can you give us BER dumps of the exop itself and the response?

> Before I reopen the ITS, I'd like to be sure my perl code is correct  
> first. In particular, is this normal to send a control object in the  
> request, and to get another distinct control object from the  
> response ?

Not sure what you mean by "distinct" but it is how the password policy  
draft is designed. Paged results is a little similar.

Cheers,

Chris
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.