abhilash s wrote:
Hi,
I have configured qpsmtpd to use auth_ldap_bind . I used LOGIN as
Authentication type. It shows the following error :
@40000000466e559b350ce4fc 6779 running plugin (auth-login): auth_ldap_bind
@40000000466e559b350cf49c Use of uninitialized value in concatenation
(.) or string at /home/smtpd/plugins/auth_ldap_bind line 66, <STDIN>
line 2.
@40000000466e559b36649174 6779 auth_ldap_bind plugin: authldap/login -
user not found
@40000000466e559b366f14dc 6779 Plugin auth_ldap_bind, hook auth-login
returned DECLINED, authldap/login - wrong username or password
@40000000466e559b36730894 Use of uninitialized value in concatenation
(.) or string at lib/Qpsmtpd/Auth.pm line 320, <STDIN> line 2.
@40000000466e559b3675d36c 6779 535 Authentication failed for -
@40000000466e559b367955dc 6779 Authentication failed for -
and the ldap log shows the following :
Jun 12 04:12:53 cobra slapd[3074]: conn=3063 op=2 SEARCH RESULT
tag=101 err=0 nentries=1 text=
Jun 12 04:13:05 cobra slapd[3074]: conn=3064 fd=18 ACCEPT from
IP=127.0.0.1:36433 (IP=0.0.0.0:389)
Jun 12 04:13:05 cobra slapd[3074]: conn=3064 op=0 SRCH
base="ou=People,dc=domain,dc=com" scope=2 deref=2
filter="(?=undefined)"
Jun 12 04:13:05 cobra slapd[3074]: conn=3064 op=0 SRCH attr=uid
Jun 12 04:13:05 cobra slapd[3074]: conn=3064 op=0 SEARCH RESULT
tag=101 err=0 nentries=0 text=
I have created ldap file and entered the ldap_base and
ldap_auth_filter_attr into it. Is there is any other extra
configuration is needed to make it work?
Could you please include the config line that you used for it? It looks
like the ldap_auth_filter_attr is unset, and/or it looks like the
username isn't coming through.
What is the client that you are using? Could you try using swaks[0] and
test authenticating that way?
[0]: http://jetmore.org/john/code/#swaks