Are you trying to search under ou=systems,ou=it,ou=central,o=enterprise,c=es ?
If yes, use the switch on ldapsearch -b (for base) and put in the above DN. Take out the & as these are conditions on what you are searching, but keep the objectclass you want the search to return.
You can do ldapsearch -? It lists your options.
-----Original Message-----
From: Saxa Egea [mailto:saxa.egea@mango.com]
Sent: 10 September 2004 11:36
To: OpenLDAP-software@OpenLDAP.org
Subject: Extended attrs search
Hi all!
I have compiled OpenLDAP 2.2.15 and compiled with:
./configure --prefix=/usr --sysconfdir=/etc --libexecdir=/usr/sbin --enable-wrappers --enable-aclgroups --enable-spasswd --enable-dynamic --enable-shared --with-tls --with-cyrus-sasl --enable-aci --enable-ldbm --enable-rewrite --enable-meta --enable-ldap --enable-monitor --enable-crypt -q
All seems ok.
But I have a problem search with extended attributes.
My Basedn is o=Enterprise,c=ES
ldapsearch -x -h ideafix -D cn=Manager,o=Enterprise,c=ES -w password "(&(&(&(&(&(c:dn:=ES)(o:dn:=Enterprise))(ou:dn:=CENTRAL))(ou:dn:=IT))(ou:dn:=Systems))(objectClass=qmailUser))"
cn
It should return 16 entries but nothing is reported. No error reports also.
I need something else when compiling openldap?
I make the same query to a backup openldap server (replica) running openldap 2.1.20 and it returns 16 accouns (as I expect!)...
I Need help... Running slapd in verbose mode doesn't report errors.
Tx a lot!
Saxa