Qmail-LDAP
[Top] [All Lists]

Re: SMTPAUTH Anonomous ldap bind only?

To: "Claudio Jeker" <jeker@n-r-g.com>, qmail-ldap@qmail-ldap.org
Subject: Re: SMTPAUTH Anonomous ldap bind only?
From: "Scott Ryan" <scottlryan@gmail.com>
Date: Thu, 1 Feb 2007 10:56:39 +0200
Delivered-to: sp-com-lists@consult.net
Delivered-to: qmail-ldap-list@securepoint.com
Delivered-to: mailing list qmail-ldap@qmail-ldap.org
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=TXzW0Ntl4i9jy9NvQ2ssRHRC/fp/YK6ps6rRN0cLbgX80ebxreK/q5LW9GRFOyyLgChK8nE9uJH5skQO/s7DgPFKzOCRlfczP4JB/nWDaxdcgltLi115/sqBbBeEyNCh4TgZNzqT02rqWJh3StIzWg0t8I8WvAniE/8MqdX1P3g=
In-reply-to: <20070131193916.GA23129@diehard.n-r-g.com>
Mailing-list: contact qmail-ldap-help@qmail-ldap.org; run by ezmlm
References: <6bf71c520701300646w1c63a88bx8d090c74d3ed2f4f@mail.gmail.com> <20070131193916.GA23129@diehard.n-r-g.com>
On 1/31/07, Claudio Jeker <jeker@n-r-g.com> wrote:
On Tue, Jan 30, 2007 at 04:46:48PM +0200, Scott Ryan wrote:
> Hi I am implementing SMTPAUTH and what I have found is that authentication
> is constantly failing. However, the user can pop their account without any
> problems with the same username and password.
>
> When I debugged my ldap logs I found the following:
>
> Jan 30 16:28:11 himalia slapd2.3[2753]: conn=17962824 fd=46 ACCEPT from
> IP= 192.168.223.100:47944 (IP=0.0.0.0:389)
> Jan 30 16:28:11 himalia slapd2.3[2753]: conn=17962824 op=0 BIND dn=""
> method=128
> Jan 30 16:28:11 himalia slapd2.3[2753]: conn=17962824 op=0 RESULT tag=97
> err=0
> text=
> Jan 30 16:28:11 himalia slapd2.3[2753]: conn=17962824 op=1 SRCH
> base="ou=mail,dc=cybertrade,dc=co,dc=za,dc=isp" scope=2 deref=0
> filter="(uid=gareth1)"
> Jan 30 16:28:11 himalia slapd2.3[2753]: conn=17962824 op=1 SRCH
> attr=accountStatus userPassword
> Jan 30 16:28:11 himalia slapd2.3[2753]: conn=17962824 op=1 SEARCH RESULT
> tag=101 err=0 nentries=0 text=
> Jan 30 16:28:11 himalia slapd2.3[2753]: conn=17962824 op=2 UNBIND
> Jan 30 16:28:11 himalia slapd2.3[2753]: conn=17962824 fd=46 closed
>
> Why is SMTP-AUTH binding with a blank dn?
> I thought that it should be binding with the dn stored in the ldaplogin
> control file
>
> # cd /var/qmail/control/
> [miranda:/var/qmail/control]# cat ldaplogin
> cn=qmail,dc=cybertrade,dc=co,dc=za,dc=isp
>
> the userPassword attribute is not readable anonomously and therefore causing
> the failed authentication.
>
> Is this a bug or have I missed something completely here?
>

Check your file permissions. auth_smtp tries to read ~control/ldappassword if
that fails it tries to bind anonymously. auth_smtp is run under the same
user as qmail-smtpd so it is possible that you need to change file
permissions.

--
:wq Claudio


Yep, that was the issue. Many thanks.

--
slr
<Prev in Thread] Current Thread [Next in Thread>
  • Re: SMTPAUTH Anonomous ldap bind only?, Scott Ryan <=