5 messages in net.sourceforge.lists.courier-usersRe: [courier-users] problem storing a...
FromSent OnAttachments
Leonid AndreevAug 23, 2000 5:05 pm 
Leonid AndreevAug 24, 2000 10:20 am 
Leonid AndreevAug 25, 2000 12:58 pm 
Arek DreyerMay 21, 2001 1:46 pm 
Sam VarshavchikMay 21, 2001 2:56 pm 
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:Re: [courier-users] problem storing account information in an LDAP directoryActions...
From:Leonid Andreev (leo@latte.harvard.edu)
Date:Aug 24, 2000 10:20:27 am
List:net.sourceforge.lists.courier-users

Make sure that xxx.edu is in hosteddomains control file, not locals.

...

it is in hosteddomains; I don't have etc/locals. xxx.edu is the real DNS name of my server.

Any other tricks?

:)

thanks,

-leonid

(the original message below)

On Thu, 24 Aug 2000, Sam Varshavchik wrote:

On Wed, 23 Aug 2000, Leonid Andreev wrote:

Hi,

I'm new to Courier, so this is probably a dumb howto question; here's my problem:

I installed Courier on my system (RedHat 6.2); everything seems to be working like a charm (including pop, imap and webmail). Except that I cannot seem to be able to use LDAP to look up virtual email accounts information. I'm running authdaemond which was compiled with authldap (among other things). I left authldap as the only authentication method in courier/etc/authdaemonrc to make sure this is not a conflict with another auth. module. The error that I'm getting is "550 ... User unknown".

I suspect that the problem is not with my Courier setup, but rather with the way I set up the LDAP server (openldap 1.2.9 in my case). I'm attaching my authldaprc, the LDAP schema I'm using to store the account information and the LDIF source for the test account. Any input you could provide would be greatly appreciated.

thanks!

-L.

P.S. I just subscribed to the list and I'm not sure if I'm already on it; so if you send a reply to the list, please cc: it to my address above (leo@latte.harvard.edu).

My authldaprc:

--- BEGIN ---

LDAP_SERVER localhost LDAP_PORT 389

LDAP_BASEDN dc=xxx,dc=edu

LDAP_BINDDN cn=Manager,dc=xxx,dc=edu LDAP_BINDPW xxx

LDAP_TIMEOUT 5

LDAP_MAIL mail LDAP_DOMAIN xxx.edu LDAP_GLOB_UID courier LDAP_GLOB_GID courier

LDAP_HOMEDIR homeDirectory LDAP_MAILDIR mailDir

LDAP_FULLNAME cn

LDAP_CLEARPW userPassword LDAP_CRYPTPW cryptPassword

--- END ---

Here's what I added to my slapd.conf:

--- BEGIN ---

objectclass cmailAccount requires objectClass, cn, mail, cryptPassword, homeDirectory allows mailDir, maildirQuota

--- END ---

(plus the attributes definitions)

And here's a sample LDIF file for a test account:

dn: mail=cour@xxx.edu,ou=People,dc=xxx,dc=edu mail: cour@xxx.edu cn: Courier Test Account objectClass: cmailAccount cryptPassword: {crypt}$1$nfcTOXR3$E8/VqxNMjLo93J5qzHwAQ1 homeDirectory: /var/courier/mail/courier.test mailDir: /var/courier/mail/courier.test

(I can successfully look this up using command line ldapsearch);

I tried this as well:

dn: mail=cour@xxx.edu,dc=xxx,dc=edu mail: cour@xxx.edu cn: Courier Test Account cryptPassword: {crypt}$1$nfcTOXR3$E8/VqxNMjLo93J5qzHwAQ1 homeDirectory: /var/courier/mail/courier.test mailDir: /var/courier/mail/courier.test

help!...