Bug 9299: fix LDAP login breakage when ExtendedPatronAttributes is on
authorSrdjan <srdjan@catalyst.net.nz>
Wed, 5 Jun 2013 04:34:29 +0000 (16:34 +1200)
committerGalen Charlton <gmc@esilibrary.com>
Fri, 27 Sep 2013 16:19:56 +0000 (16:19 +0000)
commit4d75243e27cab93cd84ee6bbfd71362326569c21
treed65a3d015d4045a2666bab4eb9baaa9d88fc8f4a
parent40a150f94e263ff72da3994612a528a888e9c8e6
Bug 9299: fix LDAP login breakage when ExtendedPatronAttributes is on

To test:
- Configure an LDAP server and $KOHA_CONF, etc.
- Make sure ExtendedPatronAttributes is defined and that
  there is no attribute defined that is specified to be
  a unique ID.
- Try to log in using an account originating from the
  LDAP directory.
- You will got a software error:
  Can't use an undefined value as an ARRAY reference at
  /home/koha/src/C4/Auth_with_ldap.pm line 183.
- Apply the patch.
- Try to log in again; this time it should work.

Signed-off-by: Nuño López Ansótegui <nunyo@masmedios.com>
Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
C4/Auth_with_ldap.pm