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

Yet another ldap_search: No such object problem



Greetings,

After searching through the archives and still can't find a solution to my
problem, I am attempting to post it with hopefully a simple solution. This
seem to be a common problem in the archives, I wish it can be solved in the
next release.

I'm running openldap on a Sparc station (Ultra 5) with Solaris 5.6. I'm
using gdbm as my backend

I keep getting: 
-------------------------------------------
ldap_search: No such object

WITH the command 

ldapsearch -b 'o=Lerdorf, c=CA'  'objectclass=*'
------------------------------------------------
I've tried all sorts of different combinations of ldapsearch, but with no
avail.



Here is my ldap.conf
-------------------------------------------------
#
# LDAP Defaults
#

# See ldap.conf(5) for details
# This file should be world readable.

#BASE   dc=OpenLDAP, dc=Org
BASE    o=Lerdorf, c=CA   
#HOST   ldap.openldap.org

#HOST   ldap.openldap.org ldap-master.openldap.org:666
#PORT   389

#SIZELIMIT      12
#TIMELIMIT      15
#DEREF          never
-------------------------------------------------

Here is my slapd.conf
-------------------------------------------------
include /usr/local/etc/openldap/slapd.at.conf
include /usr/local/etc/openldap/slapd.oc.conf
schemacheck off
#referral ldap://ldap.itd.umich.edu 

####################################################################### 
# ldbm database definitions 
####################################################################### 
database  ldbm 
suffix    "o=Lerdorf, c=CA" 
directory /usr/tmp
rootdn    "cn=root, o=Lerdorf, c=CA" 
rootpw    some_password 
-------------------------------------------------


Here is my Sample ldif file
-------------------------------------------------
dn: o=Lerdorf, c=CA 
o: Lerdorf 
objectclass: organization 

dn: ou=Friends, o=Lerdorf, c=CA 
ou: Friends
objectclass: organizationalunit 

dn: ou=Colleagues, o=Lerdorf, c=CA 
ou: Colleagues 
objectclass: organizationalunit 

dn: ou=Misc, o=Lerdorf, c=CA 
ou: Misc 
objectclass: organizationalunit 

dn: cn=Rasmus Lerdorf, ou=Friends, o=Lerdorf, c=CA 
cn: Rasmus Lerdorf 
sn: Lerdorf 
mail: rasmus@lerdorf.on.ca 
mail: rasmus@php.net 
objectclass: person 

dn: cn=John Doe, ou=Misc, o=Lerdorf, c=CA 
cn: John Doe 
sn: Doe 
mail: test@address.com 
objectclass: person 
-------------------------------------------------


I even tried just putting in my LDIF file:
----------------------------------------------------
dn: o=Lerdorf, c=CA 
o: Lerdorf 
objectclass: organization
----------------------------------------------------


Any suggestions would be appreciated. 
--------------------------------------------------------------------------
Joe Novielli  x.7703  Email: jnoviell@matrox.com
MIS Department 
Matrox Electronic Systems Inc. http://www.matrox.com 
1055 St-Régis Tel: (514) 822-6000  x. 7703
Dorval, Québec Fax: (514) 822-6262 
Canada, H9P 2T4 
--------------------------------------------------------------------------