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

Re: attribute types in openldap


On Wednesday, 31. August 2005 18:35, Moe wrote:
> I have an attribute define as:
> attributetype (
> NAME 'trustedLogin'
> SYNTAX{1024}
> How can i define an attribute with multiple values?
> I defined this  attribute as
> attributetype (
> NAME 'vipFuncarea'
> SYNTAX{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
	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