On Fri, 28 Feb 2003 20:11:27 -0600 (CST)
Jon Nelson <[EMAIL PROTECTED]> wrote:

> On Thu, 27 Feb 2003, Dave Peters wrote:
> 
> > Jon,
> > 
> > Thanks for taking the time to look at my problem. 
> > 
> > I recompiled and reinstalled courier-imap with the code that you
> > suggested, however It did not give me any more information.
> > 
> > =-=-=
> > Feb 27 12:25:28 hostname imapd: Connection,
> > ip=[::ffff:68.144.21.215] Feb 27 12:25:28 hostname imapd: chdir "":
> > No such file or directory=-=-=
> > 
> > I have tried with the following setup in the authldap file:
> > 
> > LDAP_MAILDIR            mailMessageStore
> > LDAP_HOMEDIR            mailMessageStore
> > 
> > and in my LDAP my mailMessageStore has the value of
> > /home/vmail/davep
> 
> Actually, it's told you quite a bit more.  It's told you
> the variable homedir has an empty value.   That's more than you knew
> before.
> 
> Are you using the LDAP_MAILROOT environment variable?
> 
Having missed the earlier part of the thread I'll just deal with what I
know.

I've just had the experience of setting up Courier-IMAp with LDAP and
found out a few things. I was preparing a diff, but it's on a client's
machine and the machine (or the link to it) went down overnight and I
probably won't be able to get at it until Monday now.

I was using 1.7.0 with the version of authldap.schema supplied and
OpenLDAP 2.0.27.


Issue 1. authldaprc implies that the default attribute for LDAP_HOMEDIR
is 'homeDirectory'. Unfortunately if the parameter is not specified the
code tries to use 'homeDir' which does not exist in the authldap schema.
This is in authldaplib.c

Issue 2. If no value is specified for LDAP_MAILDIR then the code does
not look anywhere in LDAP. I too had a failure trying to chdir to a null
directory at this point.

Neither of these issues will apply in the case here since attributes
have been specified for both parameters.

Issue 3. Contrary to the comments in authldaprc the additional filter
generated if LDAP_FILTER is not specified is not
(&(objectclass=CourierMailAccount)), it is '<account attribute>=<user
from login>@<LDAP_BASE_DN>', assuming LDAP_BASE_DN is specified. This
was a pig to discover as the additional filter does not show in even the
most verbose LDAP logs and I had to add extra syslog calls to Courier to
find out what was happening. Again the relevant code is in
authldaplib.c.

Since the filter will probably result in no records being returned this
could be the cause of the null directory name.

If the result is what was intended then the comments should be
clarified.


On an unrelated issue, I was trying the 'Outbox' facility. The related
comments in imapd can be taken to mean that the INBOX.Outbox directory
is automatically created if the parameter is specified. This is not the
case, the user must explicitly create it using the full INBOX.Outbox
name.


-------------------------------------------------------
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

Reply via email to