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

Re: attribute types in openldap



Am Mittwoch, den 31.08.2005, 09:35 -0700 schrieb Moe:
> Hi,
>  
> 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.

if you really read the error message, it is pretty obvious what's going
wrong: you did not provide any equality matching rule in your attribute
definition, such as  
"EQUALITY caseIgnoreIA5Match"

any search operation will fail, if your attribute lacks EQUALITY (and
depending in the underlying data type SUBSTR) definitions.

besides this your definition is correct.

Udo

BestSolution.at EDV Systemhaus GmbH
http://www.bestsolution.at

> 
>  
> Thanks
>  
> Moe
> 
> 		
> ---------------------------------
>  Start your day with Yahoo! - make it your home page