You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@directory.apache.org by hayart <ha...@rambler.ru> on 2008/12/26 14:34:24 UTC
which EQUALITY value can I define for string value?
I have created attribute in the following way
Attributes attrs = new BasicAttributes(true);
attrs.put("NUMERICOID", "1.3.6.1.4.1.18060.0.4.3.2.1");
attrs.put("NAME", "reportsto");
attrs.put("DESC", "Standard LDAP attribute type");
attrs.put("EQUALITY", "integerOrderingMatch");
attrs.put("SYNTAX", "1.3.6.1.4.1.1466.115.121.1.27");
attrs.put("SINGLE-VALUE", "true");
schema.createSubcontext("AttributeDefinition/reportsto",
attrs);
now I can not insert C785694 value, (synt. error)
which value can I define for EQUALITY attribute for inserting "C785694"
value,
I try "octetStringMatch", but still can not insert the value.
--
View this message in context: http://www.nabble.com/which-EQUALITY-value-can-I-define-for-string-value--tp21174351p21174351.html
Sent from the Apache Directory Project mailing list archive at Nabble.com.
Re: which EQUALITY value can I define for string value?
Posted by Alex Karasulu <ak...@gmail.com>.
hayart,
Emmanuel is right. You might want to get familiar with the different kinds
of syntaxes. Usually there are one or more matching rules for each syntax
to handle the return of the appropriate search results. You probably don't
want to use the integer syntax in the first place if you use this alpha
numeric value. You'll get syntax errors from the server.
I highly recommend setting up a base ADS server and using the excellent
studio tool available here to connect to the server and view the schema
associated with the connection. The schema browser in Studio is excellent
and will list all the different schema elements available to you as well as
cross referencing them which is nice when you need to drill into which
syntax is for example associated with a matching rule.
Most of the different matching rules are self explanatory but if you don't
understand some just google for it to find relevant RFCs. This is what I
do.
Alex
On Fri, Dec 26, 2008 at 8:53 AM, Emmanuel Lecharny <el...@gmail.com>wrote:
> Lorenz Breu wrote:
>
>> 1.3.6.1.4.1.1466.115.121.1.27 is INTEGER, so i guess for equality you
>> would want "integerMatch"
>>
>>
> AFAICT, 'C785694' is by no mean an integer value ...
>
> Can you please post user's question to the user's mailing list ?
>
> Thanks !
>
>
> --
> --
> cordialement, regards,
> Emmanuel Lécharny
> www.iktek.com
> directory.apache.org
>
>
>
Re: which EQUALITY value can I define for string value?
Posted by Emmanuel Lecharny <el...@gmail.com>.
Lorenz Breu wrote:
> 1.3.6.1.4.1.1466.115.121.1.27 is INTEGER, so i guess for equality you would want "integerMatch"
>
AFAICT, 'C785694' is by no mean an integer value ...
Can you please post user's question to the user's mailing list ?
Thanks !
--
--
cordialement, regards,
Emmanuel Lécharny
www.iktek.com
directory.apache.org
Re: which EQUALITY value can I define for string value?
Posted by Lorenz Breu <br...@hot-shot.com>.
1.3.6.1.4.1.1466.115.121.1.27 is INTEGER, so i guess for equality you would want "integerMatch"
lorenz