| 1 |
diff -aruN qpsmtpd-0.94.orig/plugins/auth/auth_ldap_bind qpsmtpd-0.94/plugins/auth/auth_ldap_bind |
| 2 |
--- qpsmtpd-0.94.orig/plugins/auth/auth_ldap_bind 2014-09-05 20:14:28.000000000 -0700 |
| 3 |
+++ qpsmtpd-0.94/plugins/auth/auth_ldap_bind 2014-10-29 00:01:04.914170133 -0700 |
| 4 |
@@ -81,7 +81,7 @@ |
| 5 |
use strict; |
| 6 |
use warnings; |
| 7 |
|
| 8 |
-use Net::LDAP qw(:all); |
| 9 |
+use Net::LDAP; |
| 10 |
use Qpsmtpd::Constants; |
| 11 |
|
| 12 |
sub register { |
| 13 |
@@ -173,7 +173,7 @@ |
| 14 |
$ldh->unbind if $ldh; |
| 15 |
|
| 16 |
# bind against directory as user with password supplied |
| 17 |
- if (!$mesg->count || $lduserdn = $mesg->entry->dn) { |
| 18 |
+ if (!$mesg->count or $lduserdn = $mesg->entry->dn) { |
| 19 |
$self->log(LOGALERT, "fail: user not found"); |
| 20 |
return (DECLINED, "authldap - wrong username or password"); |
| 21 |
} |