Especifique outro caminho de arquivo para ldap.conf ao ter várias instâncias do Apache em execução no Ubuntu

Especifique outro caminho de arquivo para ldap.conf ao ter várias instâncias do Apache em execução no Ubuntu

Atualmente executo duas instâncias do Apache no meu Ubuntu graças a este método:

múltiplas instâncias do Apache2 no Ubuntu

Ambas as instâncias usam ldap, uma está configurada com /etc/ldap/ldap.conf. Gostaria de configurar o segundo com outro caminho de arquivo ldap.conf.

Você sabe como fazer isso ?

Responder1

De acordo com ldap.confa página de manual:

Additional configuration files can be specified using the LDAPCONF  and
LDAPRC  environment  variables.   LDAPCONF  may be set to the path of a
configuration file.  This path can be absolute or relative to the  cur‐
rent working directory.  The LDAPRC, if defined, should be the basename
of a file in the current working directory or in the user's home direc‐
tory.

então você deve definir diferente LDACONFno apache2 envvars.

informação relacionada