Bug 14507 Use checkpw to check password in Patron Info
authorColin Campbell <colin.campbell@ptfs-europe.com>
Wed, 5 Aug 2015 11:55:41 +0000 (12:55 +0100)
committerJulian Maurice <julian.maurice@biblibre.com>
Fri, 26 Feb 2016 12:59:31 +0000 (13:59 +0100)
commitcd5640eb9f8835862d695a2572ad9017b771c13c
treedf61e4f7fb55be73420d3945819d8444221a9a30
parentae839dbfe4d49f10ee1b93958fd516d7971bf51c
Bug 14507 Use checkpw to check password in Patron Info

Some devices are using patron information responses to validate
patron passwords to govern access to facilities as we
were using C4::Auth::checkpw_hash this only worked in a db password
context not other authentication routines.
The C4::Auth routines are not very consistent and there isnt a dropin
replacement for checkpw_hash this calls checkpw instead.
In a password only environment this behaves as the old version did
returning field CQ as Y if a valid password or no password is passed in
the patron info request and N if an incorrect password is supplied
It should also test against the appropriate authentication sources if
othere autrhentication schemes are in use

Signed-off-by: Liz Rea <liz@catalyst.net.nz>
Tested this with a client who reports that this enables SIP authentication to work correctly with their LDAP server.

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Brendan Gallagher brendan@bywatersolutions.com
(cherry picked from commit 0810027bfadd50fe4b93088e9939327fd4c7f6e9)
Signed-off-by: Julian Maurice <julian.maurice@biblibre.com>
C4/SIP/ILS/Patron.pm