Issue #271 has been updated by Clément Oudot.

Status changed from Feedback to Assigned
% Done changed from 100 to 80

I have a problem with your patch, because on my system (Ubuntu), the filter is 
already quoted, so I have this:

<pre>
root@ader:~# service slapd status
slapd[3901]: [INFO] Using /etc/default/slapd for configuration
slapd[3907]: [INFO] Process slapd is running
Invalid filter ''(|(objectclass=olcBdbConfig)(objectclass=olcHdbConfig))''
</pre>

My bash version:
<pre>
clement@ader:~/svn/ltb-project$ bash --version
GNU bash, version 4.1.5(1)-release (i686-pc-linux-gnu)
</pre>

There should be a bash option to disable automatic quoting, I can't find it 
(using shopt -u extquote does not work for me)

So this issue is still open, untill we find a solution suitable for all our 
systems.
----------------------------------------
Bug #271: slapd init script fails to read suffixes from cn=config causing 
backup and status commands to fail
http://tools.lsc-project.org/issues/271

Author: Jonathan Clarke
Status: Assigned
Priority: High
Assigned to: Jonathan Clarke
Category: OpenLDAP init script
Target version: openldap-initscript-1.2


The backconfig_get_values() function does not correctly quote the LDAP filter 
used to filter entries to output (-a option to slapcat).

This is used to read the list of suffixes in a cn=config setup, and is called 
by the backup and status commands, which fail with the following output:
<pre>
# /etc/init.d/slapd status
slapd[13722]: [INFO] Using /etc/default/slapd for configuration
slapd[13733]: [INFO] Process slapd is not running
-bash: -c: line 0: syntax error near unexpected token `('
-bash: -c: line 0: `/opt/openldap/sbin/slapcat -F 
/opt/openldap/etc/openldap/slapd.d -b cn=config -a 
(|(objectclass=olcBdbConfig)(objectclass=olcHdbConfig))'
</pre>

I'm about to commit a patch.


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