Hello dear knowing nice guys!

I add an own schema to my OpenLDAP server which contains a lot of software 
configuration data. Now I would like to querey against ist but.. Yess some 
unexpected results:
Here the schema i query for:
Below a object called 
cu=DA350_XX0,cu=codice,cu=a-d,cu=natco,dc=cax,dc=airbus,dc=com
if have two brances
cu=cosoft,cu=DA350_XX0,cu=codice,cu=a-d,cu=natco,dc=cax,dc=airbus,dc=com
cu=sequence,cu=DA350_XX0,cu=codice,cu=a-d,cu=natco,dc=cax,dc=airbus,dc=com

Below this branches some other brances exists which I would like to query for. 
As an example two sub-brances ( removin the absolute DN for better human 
reading )
cn=catiav5,cu=catiav5,cu=sequence,cu=DA350_XX0,cu=codice,.....
cn=reader,cu=HPUX32,cu=adobe,cu=cosoft,cu=DA350_XX0,cu=codice,.....

To query this tree i try to pass following parameters
my $attr=['*'];
$ldap->search (
base => "cu=DA350_XX0,cu=codice,cu=a-d,cu=natco,dc=cax,dc=airbus,dc=com",
scope => "sub",
filter => "(&(cu=*) (cu=sequence)",
attrs => $attr);

All what I get back is the first ( root ) entry
cu=sequence,cu=DA350_XX0,cu=codice,....

But I assume to get every entry below the cu=sequence brance.

Why I get only this? If I change the filter to something like
($(cu=*) (cu=HPUX32)) I get all entries which include "cu=HPUX32" at the dn. 
So the syntax of the filter should be right.

any Idea are wellcome!

Karsten

( sorry for bad english! )


-- 
       ////   Never forget your towel    \\\\
***********************************************************
Karsten Kankowski
on behalf of Computacenter
Subcontractor for OADI
Phone: +49 (0)40 743 74589
Fax: +49 (0)40 743 870 74589
Mailto:karsten.kankow...@airbus.com
PgP-Key 0x754EEF1D Nick:SLbrxCjzO5yRU
**********************************************************

The information in this e-mail is confidential. The contents may not be 
disclosed or used by anyone other then the addressee. Access to this e-mail by 
anyone else is unauthorised.
If you are not the intended recipient, please notify Airbus immediately and 
delete this e-mail.
Airbus cannot accept any responsibility for the accuracy or completeness of 
this e-mail as it has been sent over public networks. If you have any concerns 
over the content of this message or its Accuracy or Integrity, please contact 
Airbus immediately.
All outgoing e-mails from Airbus are checked using regularly updated virus 
scanning software but you should take whatever measures you deem to be 
appropriate to ensure that this message and any attachments are virus free.

Reply via email to