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

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

I see.

. $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, igor@ipass.net 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.
> >
> >No.
> >
> >> 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
> >0a1
> >> # (userCertificate;binary=*)
> >69a71
> >> # (cAcertificate=*)
> >102a105
> >> # (userCertificate=2$EMAIL=ca@example.com,CN=Example CA,O=Openldap
> >Example\5C, Ltd.,ST=California,C=US)
> >135a139
> >> #
> >(userCertificate:certificateExactMatch:=3$EMAIL=ca@example.com,CN=Example
> >CA,O=Openldap Example\5C, Ltd.,ST=California,C=US)
> >
> >--
> >Igor
>
>

-- 
Igor