Issue #647 has been updated by David Coutadeur.

% Done changed from 0 to 50

Hello Olivier,

The /etc/init.d/slapd should not be modified, especially variables defined at 
the top of the file.
The correct way to do is to :
1. Define your slapd.conf file (if needed) in /etc/default/slapd
2. Define your slapd.d directory (if needed) in /etc/default/slapd

If the slapd.conf file is no longer used, just comment the corresponding 
variable in /etc/default/slapd (or empty the variable)

----------------------------------------
Bug #647: Don't attempt to check or read slapd.conf file if slapd.d directory 
is configured and present
http://tools.lsc-project.org/issues/647

Author: olivier guillard
Status: Assigned
Priority: Normal
Assigned to: David Coutadeur
Category: OpenLDAP init script
Target version: 


Sorry to reopen that, but it sounds to me that this bug is not fixed :

http://tools.lsc-project.org/issues/410

I work on redhat 6

$ rpm -qa | grep ltb
openldap-ltb-2.4.38-1.el6.x86_64
berkeleydb-ltb-4.6.21.NC-4.el6.patch4.x86_64

Here is the issue :

If in my initscript I say this :

# grep -e "^SLAPD_CONF" /etc/init.d/slapd
SLAPD_CONF="$SLAPD_PATH/etc/openldap/slapd.conf"
SLAPD_CONF_DIR="$SLAPD_PATH/etc/openldap/slapd.d"

I see that :

1/ if both $SLAPD_PATH/etc/openldap/slapd.conf and 
$SLAPD_PATH/etc/openldap/slapd.d exist,
   then slapd.conf is read, not slapd.d (it should be the opposite)

2/ if I remove the file slapd.conf (and keep of course slapd.d), then I get 
this :

  # service slapd restart
    slapd: [INFO] Using /etc/default/slapd for configuration
    slapd: [ALERT] Can't read /usr/local/openldap/etc/openldap/slapd.conf

3/  if I remove the file slapd.conf and say in the init script the following:

   # grep -e "^SLAPD_CONF" /etc/init.d/slapd
   SLAPD_CONF=""
   SLAPD_CONF_DIR="$SLAPD_PATH/etc/openldap/slapd.d"

then I also get this:

   # service slapd restart
   slapd: [INFO] Using /etc/default/slapd for configuration
   slapd: [ALERT] Can't read /usr/local/openldap/etc/openldap/slapd.conf

Any way to work work with slapd.d ? Do I miss something ?

Best






-- 
You have received this notification because you have either subscribed to it, 
or are involved in it.
To change your notification preferences, please click here: 
http://tools.lsc-project.org/my/account
_______________________________________________
ltb-dev mailing list
[email protected]
http://lists.ltb-project.org/listinfo/ltb-dev

Reply via email to