[Koha-bugs] [Bug 36161] ISLDI AuthenticatePatron broken when LDAP enabled and auth falls back to internal connection

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Mon Feb 26 17:03:40 CET 2024


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=36161

Kyle M Hall <kyle at bywatersolutions.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #162458|0                           |1
        is obsolete|                            |

--- Comment #3 from Kyle M Hall <kyle at bywatersolutions.com> ---
Created attachment 162460
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=162460&action=edit
Bug 36161: Fix ISLDI AuthenticatePatron when LDAP enabled

Test Plan:
1) Enable ILSDI:
   
http://localhost:8081/cgi-bin/koha/admin/preferences.pl?tab=web_services#web_services_ILS-DI
2) Enable ldap (not for real) by adding/editing to koha-conf:
<useldapserver>1</useldapserver><!-- see C4::Auth_with_ldap for extra configs
you must add if you want to turn this on -->
 <ldapserver id="ldapserver">
  <hostname>ldaps://nha.dog</hostname>
  <base>belong.to.us</base>
  <mapping>
      <userid is="SAMAccountname"></userid>
  </mapping>
 </ldapserver>
3) Try to authenticate a patron (generate your correct credentials:
http://localhost:8080/cgi-bin/koha/ilsdi.pl?service=AuthenticatePatron&username=edna&password=acosta
4) Can't call method "update_lastseen" on an undefined value at
/kohadevbox/koha/C4/ILSDI/Services.pm line 400
5) Apply this patch
6) Restart all the things!
7) Repeat step 3
8) No errors!
9) Set to a valid ldap server
10) Verify LDAP authentication still functions as usual

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list