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

Re: newbie: no results using filter "objectclass=*"



Martin Strohbach wrote:

> Hello!
>
> I have compiled the sources on my Linux System and everything went alright:
> there were no errors in testing the installation. So I just made all the steps
> mentioned in
> the "The SLPAD and SLURPD Administrator's Guide", section "A Quick Start
> Guide To Running SLAPD". And these are the results:
>
> root@Klapperkiste~/ldap# ldapsearch -v -h 127.0.0.1 'objectclass=*'
> ldap_open( 127.0.0.1, 0 )
> filter pattern: objectclass=*
> returning: ALL
> filter is: (objectclass=*)
> ldap_search: Can't contact LDAP server
> ldap_search: additional info: Referral:
> ldap://ldap.itd.umich.edu
> 0 matches
>
> myslapd.conf
> ============
> referral ldap://ldap.itd.umich.edu
> database ldbm
> suffix   "o=SGZ-Bank, c=DE"
> rootdn   "cn=Martin Strohbach, o=SGZ-Bank, c=DE"
> rootpw secret
>
> myldif
> ======
> dn: o=SGZ-Bank, c=DE
> o: SGZ-Bank
> objectclass: organization
>
> dn: cn=Martin Strohbach, o=SGZ-Bank, c=DE
> cn: Martin Strohbach
> sn: Strohbach
> mail: uk73@rz.uni-karlsruhe.de
> objectclass: person
>
> Probably it is just a simple mistake. Thank you for
> any help.

Unfortunately  using the base option like
  ldapsearch -v -h 127.0.0.1 -b 'o=SGZ-Bank,c=de' 'objectclass=*'
doesn't work either. I will list again my configuration file and some
additional info using debug level 256 with slapd:

myslapd.conf
============
database ldbm
suffix   "o=SGZ-Bank, c=DE"
rootdn   "cn=Martin Strohbach, o=SGZ-Bank, c=DE"
rootpw secret
access to dn=".*,o=SGZ-Bank,c=DE" by addr=127.0.0.1 search
^^^^^probably unnecessary in this context

debuginfo from slapd
====================
root@Klapperkiste~/ldap# slapd -d 256 -f myslapd.conf
slapd starting
conn=0 fd=7 connection from localhost (127.0.0.1) accepted.
conn=0 op=0 BIND dn="" method=128
conn=0 op=0 RESULT err=0 tag=97 nentries=0
conn=0 op=1 SRCH base="o=SGZ-Bank,c=de" scope=2 filter="(objectclass=*)"
next_id_read: could not open "(null)"
^^^^^^^^^^I'm not quite sure, if this is a true error or if it´s allright.
conn=0 op=1 RESULT err=0 tag=101 nentries=0
conn=0 op=2 UNBIND
conn=0 op=2 fd=7 closed errno=0


Before I have compiled this release (OpenLDAP 1.1.1) I used pre-built
release which came along with my Linux-Distribution (SuSE 6.0, OpenLDAP
1.0.2-4). I discovered that with the version built on my own, slapd is
always starting three processes, is that okay?

root@Klapperkiste~/ldap# ps x | grep slapd
  277  ?  S    0:00 slapd -f myslapd.conf
  278  ?  S    0:00 slapd -f myslapd.conf
  279  ?  S    0:00 slapd -f myslapd.conf
--
 _                                                                        _
/_/\/\                                                                /\/\_\
\_\  /  \-------------------------------------------------------\     \  /_/
/_/  \   \ Martin Strohbach  ***  eMail uk73@rz.uni-karlsruhe.de \    /  \_\
\_\/\ \   \-------------------------------------------------------\  / /\/_/
   \_\/                                                              \/_/