https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=36928
Bug ID: 36928
Summary: Patron authentication / password validation will fail
with 500 error for local users if LDAP is enabled
Change sponsored?: ---
Product: Koha
Version: unspecified
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: P5 - low
Component: REST API
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected]
If LDAP is enabled, and use of /api/v1/auth/password/validation will fail with
a 500 internal server error like:
Can't call method "cardnumber" on an undefined value at
/usr/share/koha/lib/Koha/REST/V1/Auth/Password.pm line 83, <DATA> line 1490.
This is because the valid patron object is being overwritten with an undefined
value if there is no LDAP patron returned. Since a failed LDAP query falls back
to local user auth, we try to use the now undefined patron object thus
generating an error.
--
You are receiving this mail because:
You are watching all bug changes.
You are the assignee for the bug.
_______________________________________________
Koha-bugs mailing list
[email protected]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/