VirtDomains, DefaultDomain, and SASL

Igor Brezac igor at ipass.net
Wed Jun 2 13:42:46 EDT 2004



On Wed, 2 Jun 2004, SAiello at Jentoo.com wrote:

> > No, it may append reverse lookup of 127.0.0.1 if it is a fqdn.  See 'man
> > imapd.conf' for more on virtdomains.
> If it was appending the fqdn, would I see it in my logs? I see saslauthd, say
> 'Domain not available'.

To be exact, cyrus will append domain part of the fqdn.  It looks like
127.0.0.1 resolves to 'localhost' on your system which is not a fqdn.

> So shouldn't it be appending something, either my
> defaultdomain or my FQDN ?

I do not know if it should, but the code is not written to work this
way.  You can write a canon plugin which can do this or change the reverse
lookup for 127.0.0.1.

> You can also see the ldapsearch sees the %d in the
> ldap search filter as undefined.
>
> Jun  2 13:02:18 localhost imap[30159]: accepted connection
> Jun  2 13:02:20 localhost saslauthd[30225]: Domain not available.
> Jun  2 13:02:20 localhost slapd[29742]: conn=19 fd=17 ACCEPT from
> IP=127.0.0.1:3492 (IP=0.0.0.0:389)
> Jun  2 13:02:20 localhost slapd[29811]: conn=19 op=0 BIND
> dn="cn=sasl,ou=users,dc=internal,dc=root" method=128
> Jun  2 13:02:20 localhost slapd[29811]: conn=19 op=0 BIND
> dn="cn=sasl,ou=users,dc=internal,dc=root" mech=SIMPLE ssf=0
> Jun  2 13:02:20 localhost slapd[29811]: conn=19 op=0 RESULT tag=97 err=0 text=
> Jun  2 13:02:20 localhost slapd[29810]: conn=19 op=1 SRCH base="dc=root"
> scope=2 filter="(&(?=undefined)(mail=cyrus))"
> Jun  2 13:02:20 localhost slapd[29810]: conn=19 op=1 SEARCH RESULT tag=101
> err=0 nentries=0 text=
> Jun  2 13:02:20 localhost saslauthd[30225]: Entry not found or more than one
> entries found ((&(dc:dn:=)(mail=cyrus))).
> Jun  2 13:02:20 localhost saslauthd[30225]: do_auth         : auth failure:
> [user=cyrus] [service=imap] [realm=] [mech=ldap] [reason=Unknown]
> Jun  2 13:02:20 localhost imap[30159]: badlogin: localhost [127.0.0.1]
> plaintext cyrus SASL(-13): authentication failure: checkpass failed
> ---
> Cyrus Home Page: http://asg.web.cmu.edu/cyrus
> Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu
> List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html
>

-- 
Igor
---
Cyrus Home Page: http://asg.web.cmu.edu/cyrus
Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html




More information about the Info-cyrus mailing list