Hi,
i'm using RedHat Linux 7.3,openldap2.0-23,qmail.103 patched with the latest
varsion,courier-imap.
Also i can add entries to my ldap server and also search them with
ldapsearch
My configuration files are:
/etc/openldap/slapd.conf:
include /etc/openldap/schema/core.schema
include /etc/openldap/schema/cosine.schema
include /etc/openldap/schema/inetorgperson.schema
include /etc/openldap/schema/nis.schema
include /etc/openldap/schema/qmail.schema
include /etc/openldap/schema/redhat/rfc822-MailMember.schema
include /etc/openldap/schema/redhat/autofs.schema
include /etc/openldap/schema/redhat/kerberosobject.schema
access to attr=userPassword
by dn="cn=Manager,dc=koutcons,dc=gr" write
by dn="cn=courier,dc=koutcons,dc=gr" read
by dn="cn=qmail,dc=koutcons,dc=gr" read
by self write
by * auth
access to *
by dn="cn=Manager,dc=koutcons,dc=gr" write
by dn="cn=courier,dc=koutcons,dc=gr" read
by dn="cn=qmail,dc=koutcons,dc=gr" read
by self read
by anonymous read
database ldbm
suffix "dc=koutcons,dc=gr"
rootdn "cn=Manager,dc=koutcons,dc=gr"
rootpw poulxeria
directory /var/lib/ldap
# Indices to maintain
index cn,sn,uid pres,eq
index mail,mailAlternateAddress eq
index objectClass eq
my authldaprc file:
LDAP_SERVER localhost
LDAP_PORT 389
LDAP_BASEDN dc=koutcons,dc=gr
LDAP_BINDDN cn=courier,dc=koutcons,dc=gr
LDAP_BINDPW couriersecret
LDAP_TIMEOUT 5
LDAP_AUTHBIND 0 (i have also used 1 but again nothing)
LDAP_MAIL mail
LDAP_DOMAIN koutcons.gr
LDAP_GLOB_UID vmail
LDAP_GLOB_GID vmail
LDAP_HOMEDIR mailMessageStore
LDAP_MAILDIR mailMessageStore
LDAP_FULLNAME cn
LDAP_CRYPTPW userPassword
# LDAP_UID uidNumber
# LDAP_GID gidNumber
LDAP_DEREF never
LDAP_TLS 0
authdaemonrc file:
authmodulelist="authldap"
the ldif file has the following:
dn: uid=username,ou=accounts,dc=koutcons,dc=gr
cn: FULLNAME
sn: LASTNAME
objectclass: top
objectclass: person
objectclass: inetOrgPerson
objectclass: qmailUser
mail: username@$test.koutcons.gr
mailhost: test.koutcons.gr
mailMessageStore: /var/qmail/maildirs/username/Maildir
uid: username
accountStatus: enabled
also i already have a mail server running to my domain so the mails i create
are: [EMAIL PROTECTED] instead of [EMAIL PROTECTED]
from my log files i'm getting these lines:
Sep 26 10:17:13 test imapd: Connection, ip=[::ffff:127.0.0.1]
Sep 26 10:17:30 test authdaemond.ldap: Hostname: localhost:389
Sep 26 10:17:30 test authdaemond.ldap: UID: 600
Sep 26 10:17:30 test authdaemond.ldap: GID: 600
Sep 26 10:17:30 test authdaemond.ldap: ldapconnect end
Sep 26 10:17:30 test authdaemond.ldap: BindDn:
cn=courier,dc=koutcons,dc=gr BindPw: couriersecret
Sep 26 10:17:31 test slapd[1057]: daemon: conn=0 fd=9 connection from
IP=127.0.0.1:32770 (IP=0.0.0.0:34049) accepted.
Sep 26 10:17:31 test slapd[1130]: conn=0 op=0 BIND
dn="CN=COURIER,DC=KOUTCONS,DC=GR" method=128
Sep 26 10:17:31 test slapd[1057]: deferring operation
Sep 26 10:17:31 test slapd[1130]: conn=0 op=0 RESULT tag=97 err=0 text=
Sep 26 10:17:31 test slapd[1131]: conn=0 op=1 SRCH base="dc=koutcons,dc=gr"
scope=2 filter="(&([EMAIL PROTECTED]))"
Sep 26 10:17:31 test authdaemond.ldap: Nombre de resulat: 1
Sep 26 10:17:31 test authdaemond.ldap: DN:
uid=jlazos,ou=accounts,dc=koutcons,dc=gr
Sep 26 10:17:31 test authdaemond.ldap: after ldap_first_entry
Sep 26 10:17:31 test authdaemond.ldap: copy_value mailMessageStore:
/var/qmail/maildirs/jlazos/Maildir
Sep 26 10:17:31 test authdaemond.ldap: copy_value mailMessageStore:
/var/qmail/maildirs/jlazos/Maildir
Sep 26 10:17:31 test authdaemond.ldap: copy_value cn: JoHnNy L
Sep 26 10:17:31 test authdaemond.ldap: copy_value userPassword:
{SSHA}MrZc8TD1vDb3BauLw4MHjWF/mcMiC9Fp
Sep 26 10:17:31 test authdaemond.ldap: before callback rc=-1
Sep 26 10:17:31 test authdaemond.ldap: after callback rc=-1
Sep 26 10:17:31 test slapd[1131]: conn=0 op=1 SEARCH RESULT tag=101 err=0
text=
Sep 26 10:17:36 test imapd: LOGIN FAILED, ip=[::ffff:127.0.0.1]
Sorry for this huge email.
if anybody can suggest me something i would appreciate it.
I still can't understant what is going wrong.
Regards,
John
-------------------------------------------------------
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