[Date Prev][Date Next]
Re: test021-certificate fails (ITS#2879)
On Thu, 18 Dec 2003, Kurt D. Zeilenga wrote:
> Note that ldif.flt should be compared to ldapsearch.flt
> (using diff -i). -- Kurt
. $LDIFFILTER < $SEARCHOUT > $SEARCHFLT
fails because egrep thinks that $SEARCHOUT (ldapsearch.out) is a binary
file. Everything fails after that. It is interesting that GNU egrep
barfs on the file (Binary file (standard input) matches), but the Solaris
egrep works file.
Diff still fails because of formatting error in ldapsearch.out. The
problem appears to be with
echo "#(cAcertificate;binary:certificateMatch:=$CERT)" >> $SEARCHOUT
$LDAPSEARCH -S "" -b "$BASEDN" -h $LOCALHOST -p $PORT1 \
"(cAcertificate;binary:certificateMatch:=$CERT)" >> $SEARCHOUT 2>&1
where the output of $LDAPSEARCH starts on the same line as the comment.
Otherwise, the test works fine.
Hope this helps.
> At 01:34 PM 12/17/2003, firstname.lastname@example.org wrote:
> >On Wed, 17 Dec 2003, Kurt Zeilenga wrote:
> >> Likely just you built without TLS. Current REL_ENG_2_2 skips
> >> this test when slapd is built without TLS.
> >> If you actually did build with TLS, then you dig about the
> >> test logs to see what went wrong.
> >I do not see any problems.
> >ldapseach.out has some extra comments which causes diff to fail.
> >$ diff ldif.flt ldapsearch.out
> >> # (userCertificate;binary=*)
> >> # (cAcertificate=*)
> >> # (userCertificate=2$EMAILemail@example.com,CN=Example CA,O=Openldap
> >Example\5C, Ltd.,ST=California,C=US)
> >> #
> >CA,O=Openldap Example\5C, Ltd.,ST=California,C=US)