From: Graham B. <gb...@po...> - 2002-07-12 14:59:11
|
On Fri, Jul 12, 2002 at 04:42:08PM +0200, Arne Georg Gleditsch wrote: > * Graham Barr > > 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) > > How ungrateful. This works as a charm for me, both supplying a new > password and letting slapd generate one for me, with and without the > user dn explicitly given. (Supplying a value for old password yields > the error message "use bind to verify old password", but that's > probably server specific and perfectly acceptable.) Thanks for letting me know. I will add it in. I may be pushing my luck here, but as you know how this all works (which is probably more than me) do you feel like contributing a POD for it ? And can you think of a better name for gen_password, my thouught is that generated_password is too long, what do people think ? Thanks, Graham. |