15 messages in net.sourceforge.lists.courier-users[courier-users] Courier and AUTHLDAP
FromSent OnAttachments
Pablo SabatinoSep 20, 2000 1:47 pm 
Pablo SabatinoSep 20, 2000 2:27 pm 
Mike JacksonSep 21, 2000 4:53 am 
Pablo SabatinoSep 21, 2000 1:58 pm 
Chad Leigh, Shire.Net LLCSep 21, 2000 2:54 pm 
Pablo SabatinoSep 21, 2000 4:19 pm 
Mike JacksonSep 22, 2000 12:24 am 
John HorneSep 22, 2000 3:58 am 
Mike JacksonSep 22, 2000 5:02 am 
John HorneSep 22, 2000 5:34 am 
Mike JacksonSep 25, 2000 3:24 am 
Mike JacksonSep 25, 2000 7:54 am 
Scott BiskerSep 25, 2000 11:53 am 
Mike JacksonSep 25, 2000 8:45 pm 
Pablo SabatinoSep 28, 2000 7:11 am 
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] Courier and AUTHLDAPActions...
From:Mike Jackson (jack@ssh.com)
Date:Sep 25, 2000 7:54:08 am
List:net.sourceforge.lists.courier-users

On Fri, 22 Sep 2000, you wrote:

dn: username=geo, o=ny.email-scan.com objectclass: account cn: Sam Varshavchik username: geo uidnumber: 502 gidnumber: 100 mail: ge@ny.email-scan.com mail: mrs@stop.mail-abuse.org homedirectory: /home/geo userpassword: x8Hj345 cryptpassword: $1$vY/3u/ex$SlQrtG5Euf7XJ99Mvb9Pq1

In authldaprc:

LDAP_HOMEDIR homeDirectory LDAP_MAILDIR mailDir

Hi Sam, Thanks for the info. I'm still not able to login and I've tried everything I know. I'm sure that it's something simple I'm overlooking. I've tried LDAP_CLEARPW, LDAP_CRYPTPW, and both at the same time, and always get a login failure. I'm getting the following slapd logging when attempting to login with Netscape 4.7:

=> access_allowed: entry (cn=ldap mailtest, dc=mydomain, dc=com) attr (mail) => acl_get: entry (cn=ldap mailtest, dc=mydomain, dc=com) attr (mail) <= acl_get: no acl applicable to database root => acl_access_allowed: search access to entry "cn=ldap mailtest, dc=mydomain, dc=com" => acl_access_allowed: search access to value "LDAP@mydomain.COM" by "CN=MANAGER,DC=mydomain,DC=COM" <= acl_access_allowed: granted to database root => access_allowed: exit (cn=ldap mailtest, dc=mydomain, dc=com) attr (mail) <=test_filter 1 ====> cache_return_entry_r entry_rdwr_runlock: ID: 276 send_ldap_result 0:: ber_flush: 14 bytes to sd 5 0 0c 02 01 05 e 07 0a 01 00 04 00 04 00

Here are my parameters, somebody please tell me what I'm doing wrong:

$ cat authldaprc # $Id: authldaprc,v 1.4 2000/05/29 21:01:30 mrsam Exp $

LDAP_SERVER directory.mydomain.com LDAP_PORT 389 LDAP_BASEDN dc=mydomain, dc=com LDAP_BINDDN cn=Manager, dc=mydomain, dc=com LDAP_BINDPW password LDAP_TIMEOUT 20 #LDAP_AUTHBIND 1 LDAP_MAIL mail LDAP_DOMAIN mydomain.com # LDAP_GLOB_UID vmail # LDAP_GLOB_GID vmail LDAP_HOMEDIR homeDirectory #LDAP_MAILDIR mailDir # LDAP_MAILDIRQUOTA maildirQuota LDAP_FULLNAME cn LDAP_CLEARPW userPassword LDAP_CRYPTPW cryptPassword LDAP_UID qmailUID LDAP_GID qmailGID

Here is the actual entry I'm using:

dn: cn=ldap mailtest, dc=mydomain, dc=com cn: ldap mailtest sn: mailtest objectClass: top objectClass: person objectClass: inetOrgPerson objectClass: qmailUser mail: ldap@directory.mydomain.com mailHost: directory.mydomain.com homeDirectory: /var/qmail/maildirs/ldapmailtest qmailUID: 1002 qmailGID: 1002 uid: ldapmailtest userpassword: password cryptpassword: 8GuUrchsYRQFU

Home directory of user:

directory:root:/var/qmail/maildirs $ ls -l total 2 drwx------ 3 1002 1002 512 Sep 21 13:39 ldapmailtest

Maildir of user:

viikuna:root:/var/qmail/maildirs/ldapmailtest $ ls -l Maildir/ total 8 drwx------ 2 1002 1002 512 Sep 21 13:39 cur -rw------- 1 1002 1002 24 Sep 21 13:39 maildirsize drwx------ 2 1002 1002 512 Sep 21 13:39 new drwx------ 2 1002 1002 512 Sep 21 13:39 tmp

Modules in authdaemonrc:

authmodulelist="authldap"

Processes running: $ ps -ef | grep courier root 735 730 0 17:47:11 ? 0:00
/usr/lib/courier-imap/libexec/authlib/authdaemond start root 730 1 0 17:47:11 ? 0:00
/usr/lib/courier-imap/libexec/authlib/authdaemond start root 743 730 0 17:47:11 ? 0:00
/usr/lib/courier-imap/libexec/authlib/authdaemond start root 740 1 0 17:47:11 ? 0:00
/usr/lib/courier-imap/libexec/couriertcpd -address=0 -stderrlogger=/usr/lib/cou root 732 730 0 17:47:11 ? 0:00
/usr/lib/courier-imap/libexec/authlib/authdaemond start root 742 1 0 17:47:11 pts/2 0:00
/usr/lib/courier-imap/libexec/logger imaplogin root 738 730 0 17:47:11 ? 0:00
/usr/lib/courier-imap/libexec/authlib/authdaemond start root 731 730 0 17:47:11 ? 0:00
/usr/lib/courier-imap/libexec/authlib/authdaemond start

Thanks, Mike