[Bug 11808] New: When searching for a cardnumber in the intranet, also try to search for it on the LDAP server if one is configured.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=11808 Bug ID: 11808 Summary: When searching for a cardnumber in the intranet, also try to search for it on the LDAP server if one is configured. Change sponsored?: --- Product: Koha Version: master Hardware: All OS: All Status: NEW Severity: enhancement Priority: P5 - low Component: Authentication Assignee: gmcharlt@gmail.com Reporter: fcapovilla@live.ca QA Contact: testopia@bugs.koha-community.org CC: dpavlin@rot13.org Created attachment 25527 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=25527&action=edit Add the SearchCardnumberWithLDAP system preference. This patch adds the "SearchCardnumberWithLDAP" system preference which will let you search for cardnumbers on a LDAP server. This feature only works in the Circulation section's "Check out" search bar. This feature is useful if you want to be able to checkout items for new users who were added on an LDAP server, but never connected on the OPAC. Here is how this feature works: * The librarian searches for a cardnumber in the intranet to do a checkout. * Search for the cardnumber in the local database. * If no borrower was found, SearchCardnumberWithLDAP is activated and an LDAP server is configured, search for the borrower on the LDAP server. * If a borrower was found on the LDAP server, add it to the local database. Also: * If the borrower was found in the local database, SearchCardnumberWithLDAP is activated and an LDAP server is configured, the borrower is updated using the informations on the LDAP server. Sponsored-by: CCSR ( http://www.ccsr.qc.ca ) -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=11808 Frédérick Capovilla <fcapovilla@live.ca> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |Needs Signoff --- Comment #1 from Frédérick Capovilla <fcapovilla@live.ca> --- To test this feature, you must have a LDAP server and configure it in your "koha-conf.xml" with at least mappings for the cardnumber and firstname fields. Make sure all required fields are mapped. Test case 1 : * Add a borrower with the cardnumber "12345" and the name "Test user" on your LDAP server. Make sure this cardnumber doesn't exist in your Koha database. * Activate the "SearchCardnumberWithLDAP" system preference. * Go to the "Circulation" section and search for the "12345" cardnumber to do a checkout. * You should be redirected to the circulation page for the "Test user" borrower, which means the LDAP user was successfully added to the local database. * Modify the "12345" user on your LDAP server. For example, change its name to "Bob". * Go to the "Circulation" section and search for the "12345" cardnumber again. * The user's name should now be "Bob" on the circulation page. Test case 2 : * Disable the "SearchCardnumberWithLDAP" system preference. * Modify the "12345" user on your LDAP server. For example, change its name to "Lisa". * Go to the "Circulation" section and search for the "12345" cardnumber again. * The user's name should still be "Bob" because the account was not updated this time. * Add a borrower with the cardnumber "123456" and the name "Test user 2" on your LDAP server. Make sure this cardnumber doesn't exist in your Koha database. * Go to the "Circulation" section and search for the "123456" cardnumber to do a checkout. * "No patron matched '123456'" should be shown. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=11808 Frédérick Capovilla <fcapovilla@live.ca> changed: What |Removed |Added ---------------------------------------------------------------------------- Change sponsored?|--- |Sponsored -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=11808 Owen Leonard <oleonard@myacpl.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Assignee|gmcharlt@gmail.com |fcapovilla@live.ca -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=11808 --- Comment #2 from Dobrica Pavlinusic <dpavlin@rot13.org> --- Proposed solution in this patch is not compatible with auth_by_bind LDAP option. I don't have a real solution here since auth_by_bind requires patron's password to bind to LDAP server which is not available if patron is not logging in. This should not be total show-stopper since this option is a syspref, but it would be nice if users knew somehow that even if they turn on this option, but use auth_by_bind that it will not work. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=11808 Frédérick Capovilla <fcapovilla@live.ca> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #25527|0 |1 is obsolete| | --- Comment #3 from Frédérick Capovilla <fcapovilla@live.ca> --- Created attachment 26374 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=26374&action=edit Fix system preference and add a note to the preference description. Here is a new version of the patch which adds a note on the fact that it won't work with auth_by_bind. I also added the SQL updates I forgot in my first version of this patch. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=11808 Marjorie Barry-Vila <marjorie.barry-vila@ccsr.qc.ca> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |marjorie.barry-vila@ccsr.qc | |.ca -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=11808 Martin Renvoize <martin.renvoize@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |martin.renvoize@ptfs-europe | |.com --- Comment #4 from Martin Renvoize <martin.renvoize@ptfs-europe.com> --- Interesting patch... could we have this re-based so I may test it? -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=11808 Derryn <derrynj@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |derrynj@gmail.com -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=11808 Zeno Tajoli <z.tajoli@cineca.it> changed: What |Removed |Added ---------------------------------------------------------------------------- Patch complexity|--- |Medium patch -- You are receiving this mail because: You are watching all bug changes.
participants (1)
-
bugzilla-daemon@bugs.koha-community.org