[Dovecot] dovecot and ldaps://

Geff boing at boing.com
Sat Dec 31 00:35:44 EET 2005


Given the ldap.conf (5) man page, any ldap client using the libraries 
should parse the ldap.conf.  So that should make the putenv 
unnecessary?  The following is from linux, but of course openbsd has 
the same thing listed.

Geff

----

NAME
       ldap.conf, .ldaprc - ldap configuration file

SYNOPSIS
       /etc/openldap/ldap.conf, .ldaprc

DESCRIPTION
       If  the  environment  variable LDAPNOINIT is defined, all defaulting is
       disabled.

       The ldap.conf configuration file is used to set system-wide defaults to
       be applied when running ldap clients.

       Users  may create an optional configuration file, ldaprc or .ldaprc, in
       their home directory which will be used  to  override  the  system-wide
       defaults  file.   The  file  ldaprc in the current working directory is
       also used.

Quoting Timo Sirainen <tss at iki.fi>:

> On Fri, 2005-12-02 at 16:37 +0100, David Coppa wrote:
>> Is there a way to specify, in the dovecot-ldap.conf file, where to 
>> look for the client
>> certificate and key files? Or maybe make dovecot parse the ldaprc 
>> file under /etc?
>
> Doesn't /etc/ldap/ldap.conf get parsed also with Dovecot?
>
> If not, what if you add to src/auth/main.c line 207 (just before
> lib_signals_init()):
>
> putenv("LDAPCONF=/etc/ldap/ldap.conf");
>
>





More information about the dovecot mailing list