LDAP login fix (Daniel Tuecks)

This commit is contained in:
Eric A. Miller
2013-11-14 20:28:01 -05:00
parent f1de543acf
commit c12b54b181
2 changed files with 2 additions and 1 deletions

View File

@@ -22,6 +22,7 @@
* Set of Port Name (description) fixed to assume OK dialog response * Set of Port Name (description) fixed to assume OK dialog response
* Default class of a PoE port is 0 if not otherwise defined * Default class of a PoE port is 0 if not otherwise defined
* Don't try to convert negative mW to dBm in AP power report * Don't try to convert negative mW to dBm in AP power report
* LDAP login fix (Daniel Tuecks)
2.019003 - 2013-10-27 2.019003 - 2013-10-27

View File

@@ -133,7 +133,7 @@ sub _ldap_search {
return undef unless defined($filter); return undef unless defined($filter);
return undef if (defined $attrs and ref [] ne ref $attrs); return undef if (defined $attrs and ref [] ne ref $attrs);
foreach my $server (@{$conf->{server}}) { foreach my $server (@{$conf->{servers}}) {
my $opts = $conf->{opts} || {}; my $opts = $conf->{opts} || {};
my $ldap = Net::LDAP->new($server, %$opts) or next; my $ldap = Net::LDAP->new($server, %$opts) or next;
my $msg = undef; my $msg = undef;