[tpop3d-discuss] tpop3d v1.4.1pre4

Michael Klatsky mklatsky at cttel.com
Mon, 25 Feb 2002 10:21:35 -0500


Ok- some progress, but no auth works at this time. Below, some
particulars that hopefully might help:

listen-address: xxx.xxx.xxx.xxx:110(mydomain.com)
append-domain: yes
auth-ldap-enable: yes
auth-ldap-url: ldap://myhostname:389
auth-ldap-searchdn: cn=3DManager,dc=3Dmydomain,dc=3Dcom
auth-ldap-password: xxxxxxxx
auth-ldap-filter: `(uid=3D$(local_part))'
auth-ldap-mboxtype-attr: mailMessageStore
auth-ldap-mail-user: mailuser
auth-ldap-mail-group: mailuser

Here are the results when attempting to pop:

From the mail.log:
Feb 25 10:14:25 virt01 tpop3d[9391]: [ID 702911 mail.info]
listeners_post_select: client [7]66.6.65.84/klatsky.com: connected
Feb 25 10:14:25 virt01 tpop3d[9391]: [ID 702911 mail.error]
auth_ldap_new_user_pass: ldap_search_s: No such object
Feb 25 10:14:25 virt01 tpop3d[9391]: [ID 702911 mail.error]
connection_do: client `[7]66.6.65.84/klatsky.com': username `mklatsky':
1 authentication failures
Feb 25 10:14:25 virt01 tpop3d[9391]: [ID 702911 mail.info]
connections_post_select: connection_read: client
[7]66.6.65.84/klatsky.com: closed connection

From the slapd.log in debug mode (clipped to the end, most relevant
part):

Feb 25 10:20:22 virt01 virt01.cttel.net[9382]: [ID 940369 local4.debug]
do_search
Feb 25 10:20:22 virt01 virt01.cttel.net[9382]: [ID 829381 local4.debug]
SRCH "" 2 0
Feb 25 10:20:22 virt01 virt01.cttel.net[9382]: [ID 998714 local4.debug]
0 0 0
Feb 25 10:20:22 virt01 virt01.cttel.net[9382]: [ID 119476 local4.debug]
begin get_filter
Feb 25 10:20:22 virt01 virt01.cttel.net[9382]: [ID 694368 local4.debug]
EQUALITY
Feb 25 10:20:22 virt01 virt01.cttel.net[9382]: [ID 274773 local4.debug]
end get_filter 0
Feb 25 10:20:22 virt01 virt01.cttel.net[9382]: [ID 141783 local4.debug]
filter: (mail=3Dmklatsky@klatsky.com)
Feb 25 10:20:22 virt01 virt01.cttel.net[9382]: [ID 503656 local4.debug]
attrs:
Feb 25 10:20:22 virt01 virt01.cttel.net[9382]: [ID 100000 local4.debug]=20
Feb 25 10:20:22 virt01 virt01.cttel.net[9382]: [ID 243833 local4.debug]
send_ldap_result: conn=3D1 op=3D23 p=3D2
Feb 25 10:20:22 virt01 virt01.cttel.net[9382]: [ID 119927 local4.debug]
send_ldap_result: 10::
Feb 25 10:20:22 virt01 virt01.cttel.net[9382]: [ID 137417 local4.debug]
send_ldap_response: msgid=3D24 tag=3D101 err=3D32

I'm currently looking at the auth_ldap_new_user_pass definition in
auth_ldap.c.





=20
Sincerely,
=20
Michael Klatsky
Senior Unix Administrator
Connecticut Telephone
1 Talcott Plaza
Hartford, CT 06103
1-860-240-6496=20

-----Original Message-----
From: Chris Lightfoot [mailto:chris@ex-parrot.com]
Sent: Monday, February 25, 2002 9:39 AM
To: Prune
Cc: Michael Klatsky; tpop3d-discuss@lists.beasts.org
Subject: Re: [tpop3d-discuss] tpop3d v1.4.1pre4


On Mon, Feb 25, 2002 at 03:21:19PM +0100, Prune wrote:
> Michael Klatsky wrote:
> >
> >gcc -DHAVE_CONFIG_H -I. -I. -I.   -I/usr/local/include  -Wall
> >-Wstrict-prototypes -g -O2 -c auth_ldap.c
>
> the problem comes from the code line 336 :
>=20
> #define GOT_ATTR(a)     if (ldapinfo.attr.##a && !a) { \
        [...]
>                                      ldapinfo.attr.##a, local_part,=20
        [...]
>=20
> chris : what does the "##a" exactly ?
> if you replace "##a" by "a", the error disepear....
>=20
> for the other error, check the previous mail from chris.

Indeed. ## is for `token pasting' in the C preprocessor; I
had used it there in error. ``ldapinfo.attr . a'' works
fine. It's all in the C standard (not that I bothered to
read it...).

--=20
 Stupidity, the gift that keeps on giving    (seen on the internet)