File: auth_ldap_bind-syntax.patch

package info (click to toggle)
qpsmtpd 0.94-4
  • links: PTS
  • area: main
  • in suites: bullseye, buster
  • size: 2,284 kB
  • sloc: perl: 17,176; sh: 543; makefile: 186; sql: 100
file content (21 lines) | stat: -rw-r--r-- 754 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
diff -aruN qpsmtpd-0.94.orig/plugins/auth/auth_ldap_bind qpsmtpd-0.94/plugins/auth/auth_ldap_bind
--- qpsmtpd-0.94.orig/plugins/auth/auth_ldap_bind	2014-09-05 20:14:28.000000000 -0700
+++ qpsmtpd-0.94/plugins/auth/auth_ldap_bind	2014-10-29 00:01:04.914170133 -0700
@@ -81,7 +81,7 @@
 use strict;
 use warnings;
 
-use Net::LDAP qw(:all);
+use Net::LDAP;
 use Qpsmtpd::Constants;
 
 sub register {
@@ -173,7 +173,7 @@
     $ldh->unbind if $ldh;
 
     # bind against directory as user with password supplied
-    if (!$mesg->count || $lduserdn = $mesg->entry->dn) {
+    if (!$mesg->count or $lduserdn = $mesg->entry->dn) {
         $self->log(LOGALERT, "fail: user not found");
         return (DECLINED, "authldap - wrong username or password");
     }