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

Re: attribute types in openldap



Moe writes:
> How can i define an attribute with multiple values?
> I defined this  attribute as
> attributetype ( 1.3.6.1.4.1.2027.2.1.4
> NAME 'vipFuncarea' 
> SYNTAX 1.3.6.1.4.1.1466.115.121.1.15{1024} )
>
> (...)
> [LDAP: error code 18 - modify/add: vipFuncarea: no equality matching rule]

When this attribute exists and you use the Modify operation to add
another value, slapd first uses its EQUALITY mathcing rule to check if
that value already exists.  Since it has no EQUALITY mathcing rule, it
cannot determine if the operation is legal, so the operation fails.

You can use the Modify operation with the Replace option to delete the
current value(s) and add all the values it should have.

However, a better way is usually to add an EQUALITY matching rule, in
this case caseIgnoreMatch or caseExactMatch.  Otherwise you can't search
for values of that attribute either.

You might want SUBSTR case<Ignore/Exact>SubstringsMatch too, so you can
use wildcards in such searches.

-- 
Hallvard