Bug 4994 - Net::LDAP returns lowercase names
This requires us to specify all LDAP mappings in koha-conf.xml in lowercase, instead of original case used withing LDAP. Compare readability of <userid is="hrEduPersonUniqueID" ></userid> (which doesn't work) with required (and non-intuitive) <userid is="hredupersonuniqueid" ></userid> Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz> Signed-off-by: Ian Walls <ian.walls@bywatersolutions.com>
This commit is contained in:
parent
7b1ca473cc
commit
b79c4c88a9
1 changed files with 1 additions and 1 deletions
|
@ -216,7 +216,7 @@ sub ldap_entry_2_hash ($$) {
|
|||
$debug and print STDERR "Finsihed \%memberhash has ", scalar(keys %memberhash), " keys\n",
|
||||
"Referencing \%mapping with ", scalar(keys %mapping), " keys\n";
|
||||
foreach my $key (keys %mapping) {
|
||||
my $data = $memberhash{$mapping{$key}->{is}};
|
||||
my $data = $memberhash{ lc($mapping{$key}->{is}) }; # Net::LDAP returns all names in lowercase
|
||||
$debug and printf STDERR "mapping %20s ==> %-20s (%s)\n", $key, $mapping{$key}->{is}, $data;
|
||||
unless (defined $data) {
|
||||
$data = $mapping{$key}->{content} || ''; # default or failsafe ''
|
||||
|
|
Loading…
Reference in a new issue