]> git.koha-community.org Git - koha.git/commit
bug 9611: use hash_password() and checkpw_* for LDAP logins instead of md5 hash
authorSrdjan <srdjan@catalyst.net.nz>
Fri, 23 Aug 2013 08:02:53 +0000 (20:02 +1200)
committerGalen Charlton <gmc@esilibrary.com>
Thu, 3 Oct 2013 23:01:46 +0000 (23:01 +0000)
commit328a285575e0c6069665439cd7ab16142984fac6
treee13c2ae5fa490a63be64f13a932741047a2cf817
parent7d5cf5b7e925a1e376d530f86a79673d892ac7df
bug 9611: use hash_password() and checkpw_* for LDAP logins instead of md5 hash

Test:

* LDAP:
- Turn on LDAP auth in koha-config.xml. Set "update" in your server config to 1
- Change user's password on LDAP
- Login to Koha using LDAP - Koha password should be updated, to check
- Turn off LDAP auth in koha-config.xml
- You should be ble to log in with the new password

I do not have a LDAP facility, so I cheated. I ran
perl -e 'use C4::Auth_with_ldap; C4::Auth_with_ldap::_do_changepassword("srdjan", 1000022259, "srdjan");'
and was able to change the password.

Signed-off-by: Bernardo Gonzalez Kriegel <bgkriegel@gmail.com>
Work as described.

Test
1) change <useldapserver> to 1
2) copy/paste sample <ldapserver> config from perldoc C4/Auth_with_ldap
3) using sample script was able to change password,
use (userid, borrowernumber, newpass) as arguments
4) checked with OPAC and in database

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
C4/Auth_with_ldap.pm