Newsgroup: it.comp.os.linux.sys
Titolo: courier ldap

Ho installato courier su una debian le versioni dei pacchietti sono:
ii courier-authda 0.47-4sarge4   Courier Mail Server - Authentication
daemon
ii  courier-base  0.47-4sarge4   Courier Mail Server - Base system
ii  courier-imap  3.0.8-4sarge4  Courier Mail Server - IMAP server
ii  courier-ldap  0.47-4sarge4   Courier Mail Server - LDAP support
ho configurato authdaemonrc, authldaprc e imapd come indicato di seguito:
--authmodulerc
authmodulelist="authldap"
authmodulelistorig="authcustom authcram authuserdb authldap authpgsql authmysql
authpam"
daemons=5
version=""
authdaemonvar=/var/run/courier/authdaemon
--authldaprc
LDAP_SERVER             localhost
LDAP_PORT               389
LDAP_PROTOCOL_VERSION   3
LDAP_BASEDN             ou=users, dc=dominio
LDAP_BINDDN             cn=admin, dc=dominio
LDAP_BINDPW             mypwd
LDAP_TIMEOUT            15
LDAP_MAIL               mail
LDAP_HOMEDIR            homeDirectory
LDAP_DEFAULTDELIVERY    defaultDelivery
LDAP_FULLNAME           cn
LDAP_CRYPTPW            userPassword
LDAP_UID                uidNumber
LDAP_GID                gidNumber
LDAP_DEREF              never
LDAP_TLS                0
--Imapd
ADDRESS=0
PORT=143
MAXDAEMONS=5
MAXPERIP=2
PIDFILE=/var/run/courier/imapd.pid
TCPDOPTS="-nodnslookup -noidentlookup"
AUTHMODULES="authdaemon"
AUTHMODULES_ORIG="authdaemon"
DEBUG_LOGIN=2
IMAP_CAPABILITY="IMAP4rev1 UIDPLUS CHILDREN NAMESPACE THREAD=ORDEREDSUBJECT
THREAD=REFERENCES SORT"
IMAP_KEYWORDS=1
IMAP_CAPABILITY_ORIG="IMAP4rev1 UIDPLUS CHILDREN NAMESPACE THREAD=ORDEREDSUBJECT
THREAD=REFERENCES SORT QUOTA AUTH=CRAM-MD5 AUTH=CRAM-SHA1 IDLE"
IMAP_IDLE_TIMEOUT=60
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_SHAREDINDEXFILE=/etc/courier/shared/index
IMAP_ENHANCEDIDLE=0
IMAP_TRASHFOLDERNAME=Trash
IMAP_EMPTYTRASH=Trash:1
IMAP_MOVE_EXPUNGE_TO_TRASH=1
SENDMAIL=/usr/sbin/sendmail
HEADERFROM=X-IMAP-Sender
IMAPDSTART=YES
MAILDIRPATH=Maildir
Il problema e' che non riesco a loggarimi, l'utente che uso e' che un
utente di samba si autentica sullo stesso albero ldap e funziona
benissimo, ma con courier non c'e' verso ho perso tutto il giorno senza
risultato.
Qualcuno puo' aiutarmi?
Ciao e grazie

 Qualcuno puo' aiutarmi?
Il log quando provi a fare il login che dice? e l'MTA si logga con LDAP e
crea la MailDir bene?
-- 
Vide

 crea la MailDir bene?
Collegandomi con telnet e provando a loggarmi mi dice:
Jun 27 20:55:50 svr imaplogin: LOGIN: DEBUG: ip=[::ffff:127.0.0.1],
command=LOGIN
Jun 27 20:55:50 svr imaplogin: LOGIN: DEBUG: ip=[::ffff:127.0.0.1],
username=user
Jun 27 20:55:50 svr imaplogin: LOGIN: DEBUG: ip=[::ffff:127.0.0.1],
password=pwd
Jun 27 20:55:50 svr imaplogin: authdaemon: starting client module
Jun 27 20:55:51 svr imaplogin: authdaemon: REJECT
La maildir esiste e ha i diritti impostati giusti ho fatto come scritto
qui:
http://alinux.washcoll.edu/docs/plc/postfix-courier-howto.html
se provo con 'courierauthtest utente' mi dice:
Trying authdaemon...
Authentication FAILED!
Idee ?
Ciao e grazie