[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
>OS: 
>URL: 
>Submission from: (NULL) (129.240.186.42)
>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
>*": 1.3.6.1.4.1.4203.666.5.12"*) : ;;
>*supported*)
>	test $KILLSERVERS != no && kill -HUP $KILLPIDS
>	echo "Manage DIT control not available, test skipped"
>	exit 0
>esac
>  
>
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:=1.3.6.1.4.1.4203.666.5.12)' \
	'(supportedControl:objectIdentifierMatch:=1.3.6.1.4.1.4203.666.5.12)' \
	supportedControl


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

p.


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