From: Graham B. <gb...@po...> - 2002-07-12 14:22:27
|
On Fri, Jul 12, 2002 at 03:57:33PM +0200, Arne Georg Gleditsch wrote: > Hi, > > I've attempted to access my LDAP server's password modify extended > operation via Net::LDAP, and found what appears to be a bug. In > Net::LDAP::extension a message is encoded with the key > "extendedRequest". This does not match the id "extendedReq" which is > used in Net::LDAP::ASN (and elsewhere in Net::LDAP as well), and > attempts to use $ldap->extension consequently bomb out. > > Upon rectifying this, however, I'm able to access the password modify > operation as below, which might perhaps make for a good example of the > exop-functionality to include with Net::LDAP. I know I would have > appreciated it. :) When the last person asked about this I posted the attached module. Install it as Net/LDAP/Extension/SetPassword.pm and then you should be able todo use Net::LDAP::Extension::SetPassword; $result = $ldap->set_password( user => $user, oldpasswd => $old, newpasswd => $new ); And if you are expecting the server to generate a new password $result->gen_password; # Need a better name ?? But nobody got back to say if it worked (I cannot test it) If it works, I will add it to the distribution. Graham. |