[Date Prev][Date Next]
RE: Problem in the search with OpenLDAP
This has also been a problem for me.
I have a search base of 'dc=mesasys, dc=com' and a sub tree of 'ou=People, dc=mesasys, dc=com'.
Searching at the root works fine, but using the sub tree does not.
That is: ldapsearch -b "dc=mesasys, dc=com" "(uid=ref)"
shows the correct record:
dn: uid=ref, ou=People, dc=mesasys, dc=com
cn: Ronald Fortin
title: Senior Engineer
However, ldapsearch -b "ou=People, dc=mesasys, dc=com" "(uid=ref)"
Also the search: ldapsearch -b "ou=People, dc=mesasys, dc=com" -s base "(objectclass=*)"
does show the correct entry:
dn: ou=People, dc=mesasys, dc=com
description: People at Mesa
The only other point of interest that I can think of is that the OpenLDAP server is serving 2 backends.
Ronald E. Fortin
Mesa Systems Guild, Inc.
60 Quaker Lane
Warwick, RI 02886
> -----Original Message-----
> From: owner-openldap-software@OpenLDAP.org
> [mailto:owner-openldap-software@OpenLDAP.org]On Behalf Of Jason Bodnar
> Sent: Tuesday, June 22, 1999 7:00 PM
> To: Benito Fernandez Garcia
> Cc: openldap-software@OpenLDAP.org
> Subject: RE: Problem in the search with OpenLDAP
> On 23-Jun-99 Benito Fernandez Garcia wrote:
> > I have built a tree with 3 levels. The first level is the root (o=company,
> > c= ES), the second level is the objectclass "persona" and the third level
> > is the objectclass "ordenador". So, my organization (the root) is composed
> > by "persona" (like person) and each person can have one or severals
> > "ordenador" (like PC).
> > Well my problem is that the search of any atribute (belong to "persona" or
> > belong to "ordenador") go well if I set the starting point for the search
> > as the root (o=Company, c=es).
> > example : ldapsearch -s sub -b "o=company,c=es" "attribute=something"
> > -----> Ok !
> > The problem comes when I set the starting point for the search in other
> > point.
> > example: ldapsearch -s sub -b "name=John,o=company,c=es" "attribute
> > something" ----> Wrong
> You can't use arbitrary attributes when specifying a search base. You need to
> do something like:
> ldapsearch -s sub -b o=company,c=es name=John
> You can modify the base by specifying a node below the root. For example, if
> o=company,c=ES branches into ou=persona then you can do:
> ldapsearch -s sub -b ou=persona,c=es name=John
> Jason Bodnar + firstname.lastname@example.org + Tivoli Systems
> [Another Normism ...]
> Beer, Norm?
> Yeah, that's it.