Re: ppolicy control and change password exop (again)

Guillaume Rousse <[email protected]>
Newsgroups gmane.comp.lang.perl.modules.ldap
Message-ID <[email protected]>
Chris Ridd a écrit :
> which is "passwordTooShort". So... the server seems OK and it must be 
> the perl code that's going wrong somewhere. If you single-step into 
> result->control does it look like it is finding and returning the right 
> thing?
Actually, it returns a list of controls, and the code enforce a scalar 
context...

Changing the code to
my ($response) = $result->control(LDAP_CONTROL_PASSWORDPOLICY);
is enough to fix the issue. And the documentation is correct, I just 
misread it :(

Having the method named controlS would have been less error-prone but I 
guess it's a bit late to change it.

Thanks for your help.
-- 
BOFH excuse #143:

had to use hammer to free stuck disk drive heads.
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.