Hi Eric,

I'm in the middle of setting qmail-ldap myself and having slightly different 
errors so I'm no help to you at all.

I do have one question about the uid field. I have been setting my uid field 
up as <user>, not <user>@<domain>.

It seems to me that your way of using uid is better than my way, I'm just 
confused and am looking for clarification.

In your case, my search would be:

ldapsearch -h localhost -b 'dc=arcticbears,dc=com'
'(uid=test)'

instead of:

ldapsearch -h localhost -b 'dc=arcticbears,dc=com'
'([EMAIL PROTECTED])'

I would be using the mail field instead of the uid field:

ldapsearch -h localhost -b 'dc=arcticbears,dc=com'
'([EMAIL PROTECTED])'

In no way am I criticizing or recommending. In fact, I am asking if I am 
supposed to me using the mail address in the uid field as it appears to me 
you are doing. Are you doing this in case you have [EMAIL PROTECTED] and 
[EMAIL PROTECTED]?

Sorry to add to your problems rather than solving anything.




>From: Eric Paynter <[EMAIL PROTECTED]>
>To: <[EMAIL PROTECTED]>
>Subject: Can't get auth_pop to auth!
>Date: Thu, 12 Jul 2001 20:58:19 -0700
>
>I'm trying to get auth_pop to work for qmail-pop3d. My test user id is
>[EMAIL PROTECTED] The password is testpass. I know that auth_pop is
>hitting the ldap server because I can see it in the syslog. I'm using
>OpenLDAP 2.0.11, qmail-1.03, qmail-ldap-1.03-20010501
>
>Below are outputs from uname, qmail-ldaplookup, ldapsearch, and an auth_pop
>session. After that is a sample from the syslog indicating that the 
>auth_pop
>did hit the ldap server. If anybody has any ideas or would like any other
>info, please let me know. At this point, I'm pretty stumped.
>
>Thanks,
>
>-Eric
>
>[root@metis /root]# uname -a
>Linux metis.arcticbears.com 2.2.19-4.1mdk #1 Mon Apr 9 10:34:05 MDT 2001 
>i686
>unknown
>[root@metis /root]# qmail-ldaplookup -m [EMAIL PROTECTED]
>init_ldap:      passwords are not compared via rebind
>                 localdelivery:   off
>                 clustering:      off
>                 ldapobjectclass:
>                 homedirmaker:
>                 defaultDotMode:  ldaponly
>                 defaultQuota:    10000000S, 10000C
>                 QuotaWarning:
>------
>Quota Violation: your mailbox is over it's size limit.
>Please contact [EMAIL PROTECTED] if you have any questions related to
>this message.
>
>------
>ldap_lookup:    searching with
>(|([EMAIL PROTECTED])([EMAIL PROTECTED]))
>ldap_lookup:    succeeded, found:
>                 uid: [EMAIL PROTECTED]
>                 qmailUID: 522
>                 qmailGID: 521
>                 accountStatus: active
>                 mailMessageStore: [EMAIL PROTECTED]
>                 homeDirectory: (null pointer)
>                 mailHost: metis.arcticbears.com
>                 mail: [EMAIL PROTECTED]
>                 mailAlternateAddress: no entry in the database
>                 mailQuota: no entry in the database
>                 mailForwardingAddress: no entry in the database
>                 deliveryProgramPath: no entry in the database
>                 qmailDotMode: no entry in the database
>                 deliveryMode: no entry in the database
>                 mailReplyText: no entry in the database
>[root@metis /root]# ldapsearch -h localhost -b 'dc=arcticbears,dc=com'
>'([EMAIL PROTECTED])'
>version: 2
>
>#
># filter: ([EMAIL PROTECTED])
># requesting: ALL
>#
>
># [EMAIL PROTECTED], accounts, dc=arcticbears, dc=com
>dn: [EMAIL PROTECTED], ou=accounts, dc=arcticbears, dc=com
>cn: Eric Paynter
>sn: Paynter
>objectClass: top
>objectClass: person
>objectClass: inetOrgPerson
>objectClass: qmailUser
>mail: [EMAIL PROTECTED]
>mailHost: metis.arcticbears.com
>mailMessageStore: [EMAIL PROTECTED]
>uid: [EMAIL PROTECTED]
>userPassword:: dGVzdHBhc3M=
>accountStatus: active
>
># search result
>search: 2
>result: 0 Success
>
># numResponses: 2
># numEntries: 1
>[root@metis /root]# /var/qmail/bin/qmail-popup localhost \
> > /var/qmail/bin/auth_pop pwd
>+OK <23518.994995796@localhost>
>user [EMAIL PROTECTED]
>+OK
>pass testpass
>-ERR authorization failed
>
>Entry in syslog for above command:
>
>Jul 12 20:43:23 metis slapd[17219]: daemon: conn=204 fd=9 connection from
>IP=127.0.0.1:2054 (IP=0.0.0.0:34049) accepted.
>Jul 12 20:43:23 metis slapd[17225]: conn=204 op=0 BIND dn="" method=128
>Jul 12 20:43:23 metis slapd[17225]: conn=204 op=0 RESULT tag=97 err=0 text=
>Jul 12 20:43:23 metis slapd[17224]: conn=204 op=1 SRCH
>base="dc=arcticbears,dc=com" scope=2 filter="([EMAIL PROTECTED])"
>Jul 12 20:43:23 metis slapd[17224]: conn=204 op=1 SEARCH RESULT tag=101 
>err=0
>text=
>Jul 12 20:43:23 metis slapd[17225]: conn=204 op=2 UNBIND
>Jul 12 20:43:23 metis slapd[17225]: conn=-1 fd=9 closed
>
>
>
>--
>arctic bears - the internet - your way.
>email hosting from US$8/month, domains from US$19/year.
>http://www.arcticbears.com
>

_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com

Reply via email to