[Dovecot] Ldap Proxy
Harrison Metzger
harrisonmetz at gmail.com
Mon Nov 26 16:52:16 EET 2007
Ok. I got it to work. I changed this:
pass_attrs =
uid=user,cn=proxy,BCMailDovecotProxyHost=host,gidNumber=nologin,uidNumber=nodelay
By adding nologin and nodelay it seems to work. Also, I have to have each
map to a unique ldap field or it won't like that. (If people have less than
4 entries in their ldap entry it may actually be a problem then. haha) The
static fields would be really nice, Once redhat decides to put 1.1 in their
repository it will wind up on the machine. Until then, this way seems to
work. Thanks for your help.
Harrison Metzger
On Nov 26, 2007 8:50 AM, Harrison Metzger <harrisonmetz at gmail.com> wrote:
> I changed it so that proxy would be populated by an existing ldap
> attribute. Here are what my logs show now:
>
> Nov 26 08:42:01 holiday dovecot: auth(default): client in: AUTH 1
> PLAIN service=POP3 secured lip= 127.0.0.1 rip=127.0.0.1
> resp=AGFwcGxlc2VqAHRhYmxl
> Nov 26 08:42:01 holiday dovecot: auth(default): ldap(applesej,127.0.0.1 ):
> bind search: base=dc=beloit,dc=edu
> filter=(&(objectClass=BCMailAccount)(BCMailEnable=true)(BCMailDovecotEnable=true)(uid=applesej))
> Nov 26 08:42:01 holiday dovecot: auth(default): ldap(applesej, 127.0.0.1):
> result: uid(user)=applesej cn(proxy)=John Applesead
> BCMailDovecotProxyHost(host)=144.89.40.1
> Nov 26 08:42:01 holiday dovecot: auth(default): ldap(applesej, 127.0.0.1):
> bind: dn=uid=applesej,ou=People,dc=beloit,dc=edu
> Nov 26 08:42:01 holiday dovecot: auth(default): client out: OK 1
> user=applesej proxy host=144.89.40.1 pass=xxxxxx
> Nov 26 08:42:01 holiday dovecot: auth(default): master in: REQUEST
> 1 21209 1
> Nov 26 08:42:01 holiday dovecot: auth(default): Master request 21209.1 not
> found
> Nov 26 08:42:01 holiday dovecot: auth(default): master out: NOTFOUND 1
> Nov 26 08:42:01 holiday dovecot: pop3-login: Internal login failure:
> user=<applesej>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, secured
>
> I know this user can proxy because when I set it up to do it by
> passwd-file it works.
>
> On Nov 26, 2007 8:07 AM, Timo Sirainen <tss at iki.fi> wrote:
>
> > On Mon, 2007-11-26 at 07:46 -0600, Harrison Metzger wrote:
> > > pass search: base=dc=beloit,dc=edu scope=subtree
> > >
> > filter=(&(objectClass=BCMailAccount)(BCMailEnable=true)(BCMailDovecotEnable=true)(uid=applesej))
> >
> > > fields=uid,proxy,nologin,nodelay,BCMailDovecotProxyHost
> > > Nov 26 07:40:56 holiday dovecot: auth(default): ldap(applesej,
> > 127.0.0.1):
> > > result: uid(user)=applesej BCMailDovecotProxyHost(host)= 144.89.40.1
> >
> > It looks for "proxy" field, but it doesn't get proxy field on return. So
> > I guess it doesn't exist in LDAP? If you want to proxy all users, you
> > could use for example uid=proxy in pass_attrs.
> >
> >
>
More information about the dovecot
mailing list