bug fix : 2805
deleting die on lack of user/password in config file. Signed-off-by: Galen Charlton <galen.charlton@liblime.com>
This commit is contained in:
parent
ccad2f8cf0
commit
8b9af2775e
1 changed files with 2 additions and 2 deletions
|
@ -52,8 +52,8 @@ my $context = C4::Context->new() or die 'C4::Context->new failed';
|
|||
my $ldap = C4::Context->config("ldapserver") or die 'No "ldapserver" in server hash from KOHA_CONF: ' . $ENV{KOHA_CONF};
|
||||
my $prefhost = $ldap->{hostname} or die ldapserver_error('hostname');
|
||||
my $base = $ldap->{base} or die ldapserver_error('base');
|
||||
$ldapname = $ldap->{user} or die ldapserver_error('user');
|
||||
$ldappassword = $ldap->{pass} or die ldapserver_error('pass');
|
||||
$ldapname = $ldap->{user} ;
|
||||
$ldappassword = $ldap->{pass} ;
|
||||
our %mapping = %{$ldap->{mapping}} or die ldapserver_error('mapping');
|
||||
my @mapkeys = keys %mapping;
|
||||
$debug and print STDERR "Got ", scalar(@mapkeys), " ldap mapkeys ( total ): ", join ' ', @mapkeys, "\n";
|
||||
|
|
Loading…
Reference in a new issue