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

filter on DN attributes



Hello, 

 I am a currently working on a DSML project with CASTOR libraries. 
(http://www.castor.org).


I have a question about perorming a search with  filter on DN 
attributes : (On OpenLdap servers)


I have an object which has a DN attribute.
defined in the schema as 


attributetype (1.3.6.1.4.1.18 NAME 'link'
	EQUALITY distinguishedNameMatch
	SYNTAX 1.3.6.1.4.1.1466.115.121.1.12)
(I currently run OpenLdap Server with this schema).

Now I tried to search with a filter and find objects 

which has a specified value for this attribute , but I failed. 

If I declare a filter like this : 

(&(objectclass=*)(link=*))

I do get all the proper object , but 

if want to make more exact searches I fail.

For example , 

(&(objectclass=*)(link=cn*))
or 
(&(objectclass=*)(link=cn=john,ou=people,o=rootldap))

(I do have objects where the "link" has such values like 

cn=xxx,ou=people,o=rootldap

I tried performing this search from the Netscape JAVA API 

and also from the command line utilities and failed in 

both cases.

Could it be that OpenLdap server does not support this 
kind of querries ? 


I previously so 2 or 3 posting in OpenLDAP.ORG  newgroups 
which can be related to this issue but with no help.

(I also examined the rfcs : RFC 2253 ,

UTF-8 String Representation of Distinguished Names, 

has some information on that but it did not solved the problem. 

I understand that maybe there should be perhaps some substitution 

for the query string when 

using a DN ). 


regards,

rami







_______________________________





_______________________________
Sent by TalkM@il WEBMail Server 
MailVision Inc.
http://www.mailvision.net