Use new function for LDAP client config

This commit is contained in:
Jamie Cameron
2014-01-10 11:31:14 -08:00
parent b3ae8d126a
commit 6dcc74551f

View File

@@ -54,8 +54,8 @@ $match_modes = [ [ 0, $text{'index_equals'} ], [ 1, $text{'index_contains'} ],
# Connect to the LDAP server and return a handle to the Net::LDAP object
sub ldap_connect
{
if (!$ldap_client::config{'auth_ldap'} ||
!-r $ldap_client::config{'auth_ldap'}) {
my $cfile = &ldap_client::get_ldap_config_file();
if (!$cfile || !-r $cfile) {
# LDAP client config file not known .. force manual specification
foreach my $f ("ldap_host", "login") {
if (!$config{$f}) {