[Bug 11807] New: Add categorycode conversions to LDAP authentication.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=11807 Bug ID: 11807 Summary: Add categorycode conversions to LDAP authentication. 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 25526 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=25526&action=edit Add support for categorycode conversions when updating an user using a LDAP server. This patch lets you easily configure mappings for categorycode values. These mapping will be used when updating the user's account after a successful LDAP login. Here is an example configuration : <config> <ldapserver id="ldapserver> <mapping> <categorycode is="usertype">STU</categorycode> ... </mapping> <categorycode_mapping> <categorycode value="STU">STUDENT</categorycode> <categorycode value="EMP">EMPLOYEE</categorycode> </categorycode_mapping> </ldapserver> </config> With this configuration, LDAP users with the usertype value "EMP" on the LDAP server should have the "EMPLOYEE" categorycode in Koha. 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=11807 Frédérick Capovilla <fcapovilla@live.ca> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |Needs Signoff 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=11807 --- Comment #1 from Frédérick Capovilla <fcapovilla@live.ca> --- Note: This patch also includes a small fix for the update of mapped LDAP date values. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=11807 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=11807 --- Comment #2 from Dobrica Pavlinusic <dpavlin@rot13.org> --- I like category mapping but have problem with date mappings. We are not using sql format in our LDAP but dd.mm.yyyy. format. To side-step this we are currently using our own ldap rewrite in front of Koha which rewrites it into yyyy-mm-dd format. More info about this is available at http://blog.rot13.org//2009/03/virtual-ldap-rewrite-or-augment-data-on-the-f... if anybody is interesed. Since US libraries probably use mm.dd.yyyy format and our format dd.mm.yyyy. isn't supported by C4::Date i would prefer to see configuration option in koha-conf.xml ldap section to specify which format of dates is used in LDAP installation. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=11807 Galen Charlton <gmcharlt@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |gmcharlt@gmail.com --- Comment #3 from Galen Charlton <gmcharlt@gmail.com> --- Following up on Dobrica's comment, I suggest that the patch be revised so that it only adds category code mapping; that way, such a patch could get in more quickl. Date normalization can be put on a separate bug. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=11807 Nicole C. Engard <nengard@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |nengard@gmail.com -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=11807 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=11807 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> --- Agreed, Frédérick could you update the patch and submit a new bug (if you wish to do so) for the date piece. I'de love to get this one moving again. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=11807 --- Comment #5 from Joonas Kylmälä <j.kylmala@gmail.com> --- Created attachment 42105 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=42105&action=edit Bug 11807: (follow-up) remove date conversions The date conversions are now removed with this patch. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=11807 Zeno Tajoli <z.tajoli@cineca.it> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |z.tajoli@cineca.it Patch complexity|--- |Small patch -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=11807 Zeno Tajoli <z.tajoli@cineca.it> changed: What |Removed |Added ---------------------------------------------------------------------------- CC|z.tajoli@cineca.it | -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=11807 Chris Cormack <chris@bigballofwax.co.nz> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #25526|0 |1 is obsolete| | --- Comment #6 from Chris Cormack <chris@bigballofwax.co.nz> --- Created attachment 46182 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=46182&action=edit Bug 11807 : Add support for categorycode conversions when updating an user using a LDAP server. To test 1/ Apply both patches 2/ This patch lets you easily configure mappings for categorycode values. These mapping will be used when updating the user's account after a successful LDAP login. Here is an example configuration : <config> <ldapserver id="ldapserver> <mapping> <categorycode is="usertype">STU</categorycode> ... </mapping> <categorycode_mapping> <categorycode value="STU">STUDENT</categorycode> <categorycode value="EMP">EMPLOYEE</categorycode> </categorycode_mapping> </ldapserver> </config> 3/ With this configuration, LDAP users with the usertype value "EMP" on the LDAP server should have the "EMPLOYEE" categorycode in Koha. Signed-off-by: Chris <chris@bigballofwax.co.nz> -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=11807 Chris Cormack <chris@bigballofwax.co.nz> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Needs Signoff |Signed Off -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=11807 Chris Cormack <chris@bigballofwax.co.nz> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #42105|0 |1 is obsolete| | --- Comment #7 from Chris Cormack <chris@bigballofwax.co.nz> --- Created attachment 46183 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=46183&action=edit Bug 11807: (follow-up) remove date conversions To test 1/ Apply both patches 2/ This patch lets you easily configure mappings for categorycode values. These mapping will be used when updating the user's account after a successful LDAP login. Here is an example configuration : <config> <ldapserver id="ldapserver> <mapping> <categorycode is="usertype">STU</categorycode> ... </mapping> <categorycode_mapping> <categorycode value="STU">STUDENT</categorycode> <categorycode value="EMP">EMPLOYEE</categorycode> </categorycode_mapping> </ldapserver> </config> 3/ With this configuration, LDAP users with the usertype value "EMP" on the LDAP server should have the "EMPLOYEE" categorycode in Koha. Signed-off-by: Chris <chris@bigballofwax.co.nz> -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=11807 Jonathan Druart <jonathan.druart@bugs.koha-community.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jonathan.druart@bugs.koha-c | |ommunity.org Status|Signed Off |Failed QA --- Comment #8 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- It cannot work, C4::Dates has been removed from the codebase. -- You are receiving this mail because: You are watching all bug changes.
participants (1)
-
bugzilla-daemon@bugs.koha-community.org