[tpop3d-discuss] RE: LDAP Authentication

Thai Tran t_tran99 at yahoo.com
Tue, 17 Sep 2002 19:11:36 -0500


Hello everyone,
	Here is a copy of my tpop3d.conf:

mailbox: maildir:/home/mailspool/$(domain)/$(user)/
append-domain: yes
auth-ldap-enable: yes
auth-ldap-url: ldap://localhost
auth-ldap-searchdn: o=mye-znet
auth-ldap-password:
auth-ldap-filter: <need help with this portion>
auth-ldap-mailbox-attr: mailMessageStore
auth-ldap-mail-user: nobody
auth-ldap-mail-group: nobody

If it is possible for me to change my auth-ldap-filter to make the query
result in this way, I am sure that it would work:
	ldap://localhost/dc=$(domain),o=mye-znet??sub?uid=$(local_part)

Does anyone have any ideas?

Thanks ahead,
Thai Tran

> -----Original Message-----
> From: tpop3d-discuss-admin@lists.beasts.org
> [mailto:tpop3d-discuss-admin@lists.beasts.org]On Behalf Of prune
> Sent: Tuesday, September 17, 2002 2:41 AM
> To: t_tran99@yahoo.com
> Cc: Dave Baker; tpop3d
> Subject: Re: [tpop3d-discuss] RE: LDAP Authentication
>
>
> Thai Tran wrote:
>
> >Dave,
> >	Sorry to bother you but I'm pretty knew at this and this
> might seem like a
> >stupid question, but how would I go about editing the filter to my
> >specifications?  I would like to log in with username@domain.com for
> >example.  The username portion is an attribute within the object which is
> >'uid'.  I'm quite new to all this and I've tried running through the
> >auth_ldap.c and auth_ldap.h not knowing where to start.  I would
> understand
> >how to use tpop3d more if the query was in a ldap URL format.  I am
> >currently using this schema for Exim already and I was hoping I
> could keep
> >it this simple.
> >
> >Here is a snip of one of my objects:
> >
> >dn: cn=t_tran99,dc=mye-znet.com,o=mye-znet
> >objectClass: top
> >objectClass: person
> >objectClass: mailUser
> >dc: mye=znet.com
> >sn: Tran
> >cn: Thai
> >uid: t_tran99
> >mailQuota: 5M
> >userPassword:: e01ENX03NVVDQW9NZkRweE41ZDhKZXlwcVhBPT0=
> >mailMessageStore: /home/mailspool/mye-znet.com/t_tran99/
> >
> >Thanks again,
> >Thai Q. Tran
> >Email t_tran99@yahoo.com
> >
>
> Hi,
>
> what you could try to do, is provide us wuth the openldap logs (check
> syslog to find them out). As said dave, you are probably searching for
> an attribute which does not exist in you schema.
> Could you also send us the configuration file of tpop3d ???
>
> We'll then try to help you. I also suggest to have a look to
> www.openldap.org, and learn some stuffs about ldap. It's very simple to
> setup tpop3d with ldap, as long as you know how does Ldap work.
>
> Cheers,
>
> Prune