http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=9611 --- Comment #62 from Srdjan Jankovic <srdjan@catalyst.net.nz> ---
If I feed perl -e 'use C4::Auth_with_ldap; C4::Auth_with_ldap::_do_changepassword("test", 12345, "test");' with current password, it returns nothing, and pass is not updated
If I put a new password, last argument I suppose, then it returns Password mismatch after update to borrowernumber=12345 at /home/bgkriegel/kohaclone/C4/Auth_with_ldap.pm line 274, <DATA> line 522. and pass is not updated
12345 should be the borrowernumber for the user 'test'. Is that the case?
I enabled ldap changing to 1 <useldapserver>1</useldapserver> and just copy/paste ladp server conf from perldoc. And did this because the oneliner do not run if there is no configuration.
No, this scripts goes directly to Auth_with_ldap.pm, the purpose was to avoid checking the config and doing the LDAP bit so we can test password change only without having to connect to an LDAP server.
So, perhaps I'm just doing something wrong, I don't know.
No, you are doing the right thing, just please check the borrowernumber. -- You are receiving this mail because: You are watching all bug changes.