[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: (ITS#3898) test037 fails with -DLDAP_REL_ENG

h.b.furuseth@usit.uio.no wrote:

>Full_Name: Hallvard B Furuseth
>Version: HEAD
>Submission from: (NULL) (
>Submitted by: hallvard
>test037 fails when OpenLDAP is compiled with -DLDAP_REL_ENG,
>because the manageDIT control is only available with LDAP_DEVEL.
>Shall I add this to test037 after checking that slapd is running?
># The Manage DIT control is only supported when LDAP_DEVEL is #defined
>case `$LDAPSEARCH -h $LOCALHOST -p $PORT1 -b "" -s base supportedExtension` in
>*":"*) : ;;
>	test $KILLSERVERS != no && kill -HUP $KILLPIDS
>	echo "Manage DIT control not available, test skipped"
>	exit 0
It's a supportedControl, not a supportedFeature.  A "cleaner" way to 
detect it would be

$LDAPSEARCH -h $LOCALHOST -p $PORT1 -b "" -s base \
	-Emv='(supportedControl:objectIdentifierMatch:=' \
	'(supportedControl:objectIdentifierMatch:=' \

The malue return filter is optional, a match would be enough.


    SysNet - via Dossi,8 27100 Pavia Tel: +390382573859 Fax: +390382476497