[Koha-bugs] [Bug 11808] When searching for a cardnumber in the intranet, also try to search for it on the LDAP server if one is configured and add/update user

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri Oct 4 23:48:50 CEST 2019


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

--- Comment #10 from Maryse Simard <maryse.simard at inlibro.com> ---
Created attachment 93768
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=93768&action=edit
Bug 11808: (QA follow-up) Adds a third option to SearchCardnumberWithLDAP and
other fixes

This patch does a few things:

- Adds a third option to the new system preference to choose between:
    never use ldap,
    make a request (and add) only when no patron is found,
    and always make a request (add/update).
- Adds search and update with ldap in the case the patron is found
by it's cardnumber in circulation.
- Use Patron object in the new subs in C4/Auth_with_ldap.pm.

To test:
0. You need to have an ldap server containing patron informations
configured in Koha.

1. Apply patch and update database.

2. Check that the new system preference SearchCardnumberWithLDAP has
been added and set as 'never'.

3. Choose a patron who exists in your ldap server but not in Koha.
(you can delete an existing patron from Koha if needed)

4. Search for the patron by both it's cardnumber and any other
attributes (results should be the same in both case) in the search
bar in circ/circulation.pl.Do not choose from the dropdown list,
use the submit button.
    => Should return cardnumber not found

5. Change SearchCardnumberWithLDAP to 'if not found locally'.

6. Repeat step 4.
    => The patron should be added to Koha.

7. Edit the patron and change any of the existing information.

8. Repeat step 4.
    => The patron has not been updated (the change made in step 7 is
    still there)

9. Change SearchCardnumberWithLDAP to 'always'.

10. Repeat step 4.
    => The patron has been updated. Change made in step 7 has been
    rewritten and patron informations is the same as in step 6.

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


More information about the Koha-bugs mailing list