Hello all,
I tried a lot of different configurations but unfortunately I didn't make
courier to authenticate proper over ldap.
My LDIF Export is like:
dn:cn=Stelios Asmargianakis,ou=People,dc=ldapserver,dc=mydomain,dc=gr
cn: Stelios Asmargianakis
gidNumber: 110
givenName: Stelios
homeDirectory: /home/stelios
l: Athens
mail: [EMAIL PROTECTED]
mobile: +30 11111111
o: ISD Athens
objectClass: top
objectClass: inetOrgPerson
objectClass: inetLocalMailRecipient
objectClass: posixAccount
sn: Asmargianakis
street: Marousi
telephoneNumber: +30 1111111
uid: stelios
uidNumber: 1000
userPassword: somepassword
mailHost: 192.168.1.248
mailLocalAddress: stelios
mailRoutingAddress: [EMAIL PROTECTED]
My authldaprc is like:
LDAP_SERVER localhost
LDAP_PORT 389
LDAP_BASEDN ou=people,dc=ldapserver,dc=mydomain,dc=gr
LDAP_BINDDN cn=admin,dc=ldapserver,dc=mydomain,dc=gr
LDAP_BINDPW s416070
LDAP_TIMEOUT 5
LDAP_AUTHBIND 1
LDAP_MAIL mail
LDAP_HOMEDIR homeDirectory
LDAP_MAILROOT /var/mail
LDAP_MAILDIR mailbox
LDAP_DEFAULTDELIVERY defaultDelivery
LDAP_MAILDIRQUOTA quota
LDAP_FULLNAME cn
LDAP_CLEARPW clearPassword
LDAP_CRYPTPW userPassword
Under logs I can only see:
Sep 12 15:54:33 ldapserver courierpop3login: LOGIN FAILED,
ip=[::ffff:127.0.0.1]
My authdaemonrc includes:
authmodulelist="authldap authpam"
My slapd.conf is:
allow bind_v2
include /etc/ldap/schema/core.schema
include /etc/ldap/schema/cosine.schema
include /etc/ldap/schema/nis.schema
include /etc/ldap/schema/inetorgperson.schema
include /etc/ldap/schema/misc.schema
schemacheck on
pidfile /var/run/slapd/slapd.pid
argsfile /var/run/slapd.args
loglevel 0
modulepath /usr/lib/ldap
moduleload back_bdb
backend bdb
checkpoint 512 30
database bdb
suffix "dc=ldapserver,dc=mydomain,dc=gr"
directory "/var/lib/ldap"
index objectClass eq
lastmod on
access to attrs=loginShell,shadowLastChange,gecos,userPassword
by dn="cn=admin,dc=ldapserver,dc=mydomain,dc=gr" write
by anonymous auth
by self write
by * none
access to dn.base="" by * read
access to *
by dn="cn=admin,dc=ldapserver,dc=mydomain,dc=gr" write
by * read
Now, making a test by using the courierauthtest it seems to work ok:
ldapserver:/etc/ldap# courierauthtest stelios
Trying authdaemon...
Authenticated: module authdaemon
Home directory: /home/stelios
UID/GID: 1000/110
AUTHADDR=stelios
AUTHFULLNAME=Stelios Asmargianakis
OPTIONS=<none>
Also, sendmail is able to send and receive email without a problem.
Any help is much appreciated.
Thanks
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
courier-users mailing list
[email protected]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users