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

Re: attribute types in openldap



Hi,

On Wednesday, 31. August 2005 18:35, Moe wrote:
> I have an attribute define as:
> attributetype ( 1.3.6.1.4.1.2027.2.1.8
> NAME 'trustedLogin'
> SYNTAX 1.3.6.1.4.1.1466.115.121.1.15{1024}
> SINGLE-VALUE )
>
> 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} )
>
> But when i try to add more than one value to it i get an error :
> 0802: Could not assign 'FILTER_STANDARD' to 'cn=vipadmin,dc=local,dc=gov'
> because of 'javax.naming.directory.InvalidSearchFilterException: [LDAP:
> error code 18 - modify/add: vipFuncarea: no equality matching rule];
> remaining name 'cn=vipadmin''. 0341: Could not assign FILTER_STANDARD to
> vipadmin. Possibly, this assignment already exists, or there is a problem
> in the database/LDAP server.

You need to define the attributes with an appropriate EQUALITY matching rule.

In the cases listed 
	EQUALITY caseIgnoreMatch
or
	EQUALITY caseExactMatch
should work (depending on your needs)

I don't nkow whether you need to export/re-import the data from / to the 
directory when you change definitions of attributes that are already used in 
the directory. But to be on the safe side - I guess - you ought to do it.

-- 
Peter Marschall
eMail: peter@adpm.de