[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
Re: Design of assertion control filter
- To: Dieter Klünter <dieter@dkluenter.de>
- Subject: Re: Design of assertion control filter
- From: Philip Guenther <guenther+ldaptech@sendmail.com>
- Date: Mon, 10 Jun 2013 09:34:50 -0700
- Cc: openldap-technical@openldap.org
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/simple; d=sendmail.com; s=tls.dkim; t=1370882116; bh=uY0E4QX1mq4ZnobdAG/He4DpR9v/7AJThuNic9w9zAk=; h=Date:From:To:cc:Subject:In-Reply-To:Message-ID:References: MIME-Version:Content-Type:Content-Transfer-Encoding; b=b7hU1z90oAi6xG4ArpmC65QLYdbZvzs3AP7Rfb6QpRmTtt/lqQFogMzAUXfv3auWe abic/KAK/q0+V/6BGd6NHJ60p66omcXe2NBH98X6QLcwVVtzYBfeoOCSvieyBL1RWQ sgjx+JaDEGFibeVygyROcjDRgtDBbW4S7PHVzlKE=
- In-reply-to: <20130610130958.4c0e67f2@violet.avci.de>
- References: <20130610130958.4c0e67f2@violet.avci.de>
- User-agent: Alpine 2.03 (BSO 1266 2009-07-14)
On Mon, 10 Jun 2013, Dieter KlÃnter wrote:
...
> Now a search with assertion control allways shows error 122
>
> ldapsearch -YEXTERNAL -e assert='l=Tombstone'-H ldapi:///
> -b "cn=Billy Kid,ou=tombstone,o=avci,c=de" -s base sn l
You left out the space between the assertion control and the -H. As a
result, "ldapi:///" was taken as an attribute to return and the assertion
filter was "l=Tombstone-H", which will obviously fail.
This isn't just a typo in your email, as can be seen here:
> # requesting: ldapi:/// sn l
> The same applies to an extended assertion filter
> ldapsearch -YEXTERNAL -e assert='l:caseExactmatch:=Tombstone'
> -H ldapi:/// -b "cn=Billy Kid,ou=tombstone,o=avci,c=de" -s base sn l
>
> # search result
> search: 2
> result: 122 Assertion Failed
>
> What is wrong with this assertion filter?
You don't show the full output so I can't tell whether you made the same
typo there, but assertions like that work for me with OpenLDAP 2.4.35
Philip Guenther