[koha-commits] main Koha release repository branch 3.8.x updated. v3.08.13-79-gea8708d

Git repo owner gitmaster at git.koha-community.org
Sun Aug 18 06:21:08 CEST 2013


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "main Koha release repository".

The branch, 3.8.x has been updated
       via  ea8708d31c4d3c6fe8dcc02b636c283f2104c4c2 (commit)
      from  9219966d46c94ff436fc91782a1f656f0716e18f (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit ea8708d31c4d3c6fe8dcc02b636c283f2104c4c2
Author: Fridolyn SOMERS <fridolyn.somers at biblibre.com>
Date:   Fri May 31 10:17:08 2013 +0200

    Bug 10384: fall back to normal authentication if LDAP server is not available
    
    This fixes a bug where, assuming LDAP authentication is enabled, if a user
    tries to log in while the LDAP server is down, the following fatal error
    is displayed:
    
    Can't call method "bind" on an undefined value at C4/Auth_with_ldap.pm line 134, <DATA> line 558.
    
    This patch catches this error to allow normal authentication when LDAP connexion fails.
    
    Test plan :
    - Configure LDAP connexion with a host not having LDAP. ie :
     <useldapserver>1</useldapserver>
     <ldapserver id="ldapserver">
        <hostname>localhost</hostname>
        <base>dc=test,dc=com</base>
        <user>cn=Manager,dc=test,dc=com</user>
        <pass>passwd</pass>
        <replicate>0</replicate>
        <update>0</update>
        <auth_by_bind>0</auth_by_bind>
        <mapping>
          <firstname    is="givenname"      ></firstname>
          <surname      is="sn"             ></surname>
          <branchcode   is="branch"         >MAIN</branchcode>
          <userid       is="uid"            ></userid>
          <password     is="userpassword"   ></password>
          <email        is="mail"           ></email>
          <categorycode is="employeetype"   >PT</categorycode>
        </mapping>
     </ldapserver>
    - Try to connect with mysql user (defined in koha-conf.xml)
    - Try to connect with a user defined in borrowers
    You may try to connect with working LDAP connexion
    
    Signed-off-by: Chris Cormack <chris at bigballofwax.co.nz>
    Signed-off-by: Kyle M Hall <kyle at bywatersolutions.com>
    Signed-off-by: Galen Charlton <gmc at esilibrary.com>
    (cherry picked from commit 96ac578960cb4f2c5a964b3ac7fa4f9ba676b95d)
    Signed-off-by: Tomas Cohen Arazi <tomascohen at gmail.com>
    (cherry picked from commit 85130dafc515363eba8f44973291a7af893a8b52)
    Signed-off-by: Bernardo Gonzalez Kriegel <bgkriegel at gmail.com>
    (cherry picked from commit 85130dafc515363eba8f44973291a7af893a8b52)
    Signed-off-by: Chris Hall <followingthepath at gmail.com>
    (cherry picked from commit e29a98f8166df4cad0cb6ea12bd06a39e52a4d47)

-----------------------------------------------------------------------

Summary of changes:
 C4/Auth_with_ldap.pm |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)


hooks/post-receive
-- 
main Koha release repository


More information about the koha-commits mailing list