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

No such object on 2.0.7 - what's wrong?



I'm upgrading from 1.2.11 to 2.0.7, and I'm having a bunch of problems with
it.  I fiddled with 2.0.7 a while ago and gave up on SASL, but this time
around I'm not even getting that far.

I'm installing a directory with basedn "dc=ieee,dc=uow,dc=edu,dc=au".  I've
got the complete LDIF out of 1.2.11 with ldbmcat, and imported it into 2.0.7
with slapadd.  I removed the entries for dc: {uow,edu,au} since slapadd had
a whinge that I wasn't able to add them.  Everything else goes in pretty
nicely there.

Then, when I try to ldapsearch, I get the following:

root@screwdriver:/var/opt/slapd_2.0.7-3/ldbm# ldapsearch -b
	dc=ieee,dc=uow,dc=edu,dc=au "(objectclass=*)"
ldap_search: No such object

This is with an ldap.conf of:

#
# LDAP Defaults
#

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

BASE	dc=ieee,dc=uow,dc=edu,dc=au
HOST	ldap.ieee.uow.edu.au

SIZELIMIT	0
TIMELIMIT	0
DEREF		never

If I use a 2.0.7 tool:

inductor:~$ ldapsearch -b dc=ieee,dc=uow,dc=edu,dc=au "(objectclass=*)" -x
version: 2  
#
# filter: (objectclass=*)
# requesting: ALL
#
 
# search result
search: 2
result: 32 No such object  

# numResponses: 1

ldap.conf:
# $OpenLDAP: pkg/ldap/libraries/libldap/ldap.conf,v 1.4.8.6 2000/09/05 17:54:38 kurt Exp $
#
# LDAP Defaults
#

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

BASE	dc=ieee,dc=uow,dc=edu,dc=au
URI	ldap://ldap.ieee.uow.edu.au

SIZELIMIT	0
TIMELIMIT	15
DEREF		never


Which seems pretty much to do the same thing.

For reference, slapd.conf is:

# This is the main ldapd configuration file. See slapd.conf(5) for more
# info on the configuration options.

# Schema and objectClass definitions
include		/etc/opt/slapd_2.0.7-3/schema/core.schema
include		/etc/opt/slapd_2.0.7-3/schema/nis.schema
# A local schema for a few piddling attributes and classes
include		/etc/opt/slapd_2.0.7-3/schema/ieee.schema

# Schema check allows for forcing entries to
# match schemas for their objectClasses's
schemacheck	on

# Where clients are refered to if no
# match is found locally
#referral	ldap://ldap.four11.com

# Where the pid file is put. The init.d script
# will not stop the server if you change this.
pidfile		/var/run/slapd.pid

# List of arguments that were passed to the server
argsfile	/var/run/slapd.args

# Read slapd.conf(5) for possible values
loglevel	0

#######################################################################
# ldbm database definitions
#######################################################################

# The backend type, ldbm, is the default standard
database	ldbm

# The base of your directory
suffix		"dc=ieee,dc=uow,dc=edu,dc=au"

# Where the database file are physically stored
directory	"/var/opt/slapd_2.0.7-3/ldbm"

# Save the time that the entry gets modified
lastmod on

# Indexes for the commonly accessed attributes
index uid pres,eq
index cn pres,eq,sub
index objectClass eq

# The userPassword by default can be changed
# by the entry owning it if they are authenticated.
# Others should not be able to see it, except the
# admin entry below
access to attribute=userPassword
	by dn="uid=(daniel,mjp16),ou=people,dc=ieee,dc=uow,dc=edu,dc=au" write
	by anonymous auth
	by self write
	by * none

# The admin dn has full write access
access to *
	by dn="uid=(daniel,mjp16),ou=people,dc=ieee,dc=uow,dc=edu,dc=au" write
	by * read

# Replication to faster slave on inductor
replogfile /var/opt/slapd_2.0.7-3/inductor.replog
replica host=inductor.ieee.uow.edu.au bindmethod=simple
	binddn="cn=ldapservices,dc=ieee,dc=uow,dc=edu,dc=au"
	credentials="ldapsrv1"

# End of ldapd configuration file

My LDIF is pretty ordinary, no big surprises.  I've got an entry:

dn: dc=ieee,dc=uow,dc=edu,dc=au
dc: ieee
objectclass: top
objectclass: dcObject

as recommended in some document or other.

If it makes any difference, I'm using sort-of Debian packages, but modified
a fair bit (install directories, mostly).

I'd welcome any comments anyone has.  I'm sure it's a config stuff-up (maybe
in the indexing or something) but I'll be darned if I can find it.


-- 
-----------------------------------------------------------------------
#include <disclaimer.h>
Matthew Palmer
mjp16@ieee.uow.edu.au