Hi,

I have the following configuration:
 - Mandrake 8.2
 - courier-imap-1.4.2
 - Openldap-2.0.x
 - pam_ldap-134
 - nss_ldap-173
 - qmail

I have about 20 users in my directory. Each user can authenticate to
 courier-imap and read their mail.

Everything works well but sometimes (when ?), no user can be
 authenticated. I have the following error:
 "Unknown user or Invalid Credentials".
 and I have to restart courier-imap to success in authentication.

I have tried to change "timeout" parameters in my configuration file
 because I think it is a problem with the connection between the
 LDAP Directory and Courier-imap)

Do you have any idea ?

thanks in advance

_________________________________________

My configuration files

/etc/authldaprc ----------------
LDAP_SERVER             (...)
LDAP_PORT               389
LDAP_BASEDN             (...)
LDAP_BINDDN             (...)
LDAP_BINDPW             (...)
LDAP_TIMEOUT    40
LDAP_MAIL         uid
LDAP_HOMEDIR    homeDirectory
LDAP_MAILDIR    mailDir
LDAP_FULLNAME   cn
LDAP_CLEARPW    clearPassword
LDAP_CRYPTPW    userPassword
LDAP_UID                uidNumber
LDAP_GID                gidNumber
LDAP_DEREF              never
LDAP_TLS                0
--------------------------------

/etc/imapd----------------------
ADDRESS=(...)
PORT=143
MAXDAEMONS=40
MAXPERIP=10
PIDFILE=/var/run/imapd.pid
TCPDOPTS="-nodnslookup -noidentlookup"
AUTHMODULES="authdaemon"
AUTHMODULES_ORIG="authdaemon"
IMAP_CAPABILITY="IMAP4rev1 CHILDREN NAMESPACE THREAD=ORDEREDSUBJECT
THREAD=REFERENCES SORT"
IMAP_CAPABILITY_ORIG="IMAP4rev1 CHILDREN NAMESPACE THREAD=ORDEREDSUBJECT
THREAD=REFERENCES SORT AUTH=CRAM-MD5 AUTH=CRAM-SHA1 IDLE"
IMAP_IDLE_TIMEOUT=7200
IMAP_CAPABILITY_TLS="$IMAP_CAPABILITY AUTH=PLAIN"
IMAP_CAPABILITY_TLS_ORIG="$IMAP_CAPABILITY_ORIG AUTH=PLAIN"
IMAP_DISABLETHREADSORT=0
IMAP_CHECK_ALL_FOLDERS=0
IMAP_OBSOLETE_CLIENT=0
IMAP_ULIMITD=65536
IMAP_USELOCKS=0
IMAP_EMPTYTRASH=Trash:7
IMAP_MOVE_EXPUNGE_TO_TRASH=0
IMAPDSTART=YES
--------------------------------

/etc/nsswitch.conf--------------
passwd:     files  ldap
shadow:     files  ldap
group:      files  ldap
hosts:         files dns
bootparams:  [NOTFOUND=return] files
ethers:     files
netmasks:   files
networks:   files
protocols:  files
rpc:        files
services:   files
automount:  files
aliases:    files
--------------------------------

/etc/ldap.conf------------------
host (..)
base (..)
ldap_version 3
port 389
bind_timelimit 30
idle_timelimit 3600
pam_filter objectclass=posixaccount
pam_login_attribute uid
pam_member_attribute gid
pam_template_login_attribute uid
nss_base_passwd         (..)
nss_base_shadow         (..)
pam_password crypt
ssl off
--------------------------------

/etc/openldap/slapd.conf--------
(..schemas..)
idletimeout     3600
access to attr=deliveryMode,replyText
                by self write
                by * read
access to
attr=userPassword,lmPassword,ntPassword,pwdCanChange,pwdMustChange,kickoffTi
me,pwdLastSet,logoffTime,acctFlags
                by self write
                by anonymous auth
                by * none
access to *
                By self read
                By * read
pidfile         /usr/local/var/slapd.pid
argsfile        /usr/local/var/slapd.args
schemacheck     on
database        ldbm
directory      /var/openldap/Here
suffix         (...)
rootdn         (...)
rootpw     (...)
sizelimit       5000
index objectClass                                                       eq
index cn,sn                                                             pres,eq,sub
index homeDirectory,userPassword,loginShell,uid,uidNumber,gidNumber     eq
index mail,mailAlternateAddress                                         eq
--------------------------------

/etc/pam.d/imapd----------------
<No file>
--------------------------------

_______________________________
Hope I don't forget anything



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users

Reply via email to