2 messages in net.sourceforge.lists.courier-users[courier-users] Re:authldap question ...
FromSent OnAttachments
niyongJun 5, 2000 11:56 pm 
niyongJun 6, 2000 11:59 pm 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:[courier-users] Re:authldap question about courier-imapActions...
From:niyong (niyo@263.net)
Date:Jun 5, 2000 11:56:32 pm
List:net.sourceforge.lists.courier-users

1.I am using

----------------------------------- -qmail 1.03 -Redhat 6.0 -courier imap 0.33 -ldap patch qmail-ldap-1.03-20000501 -openldap 1.2.7

-------------------------------------

2.I installed courier-imap software with authldap module by using "-configure --with-authldap"

3. I can use "authtest -m authdaemon userid" to find the user in ldap.

4. When I use "authtest -m authdaemon userid userpassword",it output "Authficated failure"

5. When I remove "LDAP_AUTHBIND=1" from authldaprc, it also output "Authficated failure".

The following is the content of /usr/lib/courier-imap/etc/authdaemonrc file

----------------------------------------------------------- authmodulelist="authcram authuserdb authpam authldap" daemons=5 authdaemonvar=/usr/lib/courier-imap/var/authdaemon

-----------------------------------------------------------

The following is the content of /usr/lib/courier-imap/etc/authldaprc file.

------------------------------------------------------ LDAP_SERVER localhost LDAP_PORT 389 LDAP_BASEDN o=webmail system, c=CN LDAP_BINDDN cn=root, o=webmail system, c=CN LDAP_BINDPW niyong LDAP_TIMEOUT 5 LDAP_AUTHBIND 1 LDAP_MAIL mail LDAP_DOMAIN buku.dyn.dhs.org LDAP_HOMEDIR mailMessageStore LDAP_MAILDIR mailDir LDAP_FULLNAME cn LDAP_CLEARPW userPassword LDAP_UID qmailUID LDAP_GID qmailGID

---------------------------------------------------------

The following is the content of the /usr/lib/courier-imap/etc/imapd.conf.

--------------------------------------------------------- ADDRESS=0 PORT=143 MAXDAEMONS=40 MAXPERIP=4 PIDFILE=/var/run/imapd.pid TCPDOPTS="-forcebind -nodnslookup -noidentlookup" AUTHMODULES="authdaemon" IMAP_CAPABILITY="IMAP4rev1 NAMESPACE" IMAP_USELOCKS=0 IMAP_EMPTYTRASH=7 IMAPDSTART=yes

-----------------------------------------------------------

The following is the attribute of the user "webmail" in ldap entry.

------------------------------------------------------------ dn: cn=webmail, o=webmail system, c=CN cn: webmail sn: webmail mail: webm@buku.dyn.dhs.org mailHost: buku.dyn.dhs.org mailMessageStore: /home/webmail/ qmailUID: 1500 qmailGID: 1500 uid: webmail userPassword: webmail

----------------------------------------------------------------

APPENDIX:

1.When I use "authinfo",it output

---------------------------------------------------------- AUTHENTICATION_MODULES="authdaemon" AUTHDAEMONMODULELIST="authcram authuserdb authpam authldap" SASL_AUTHENTICATION_MODULES="LOGIN CRAM-MD5"

-----------------------------------------------------------

2.When I run " telnet 127.0.0.1 143" and the courier-imap seems ok.

3.When I run " A LOGIN username userpasswd",it says error.

4.When I use Netscape Navigator to connect 127.0.0.1:143 , it says "beacuse security reason,it will not connect the server".

regards