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

Converting from OpeLDAP V1.2 to 2.0 - close but no cigar



Hi,

We have been attempting to get openldap (openldap-2.0.23-4 - ships w/ RedHat 7.3) to work with our existing (and functional) v2 schema. The server starts, and I have tried to import the ldif, but only limited success. I can add entries, and dump them back to an ldif file, but I cannot search. We currently have the server set to use a working ver 1.2 server for authentication queries, but nothing we do seems to make a difference in running ldapsearch against the V3 directory on the local server. I keep getting the following errors:

# ldapsearch -x -b "dc=standard,dc=k12,dc=ca,dc=us" -h 127.0.0.1 -P 3
version: 2

#
# filter: (objectclass=*)
# requesting: ALL
#

# search result
search: 2
result: 32 No such object

# numResponses: 1

Slapd.conf follows:

cat slapd.conf
#
#
#include                /etc/openldap/slapd.at.conf
#include                /etc/openldap/slapd.oc.conf
#include                /etc/openldap/mail-routing.oc.conf
#include                /etc/openldap/slapd-v2.nis.conf
#include                /etc/openldap/slapd.ssd.conf
#include                        /etc/openldap/schema/core.schema
#include                        /etc/openldap/schema/misc.schema
#include                        /etc/openldap/schema/cosine.schema
#include                        /etc/openldap/schema/nis.schema
#include                        /etc/openldap/schema/inetorgperson.schema
include         /etc/openldap/schema/core.schema
include         /etc/openldap/schema/misc.schema
include         /etc/openldap/schema/cosine.schema
include         /etc/openldap/schema/inetorgperson.schema
include         /etc/openldap/schema/nis.schema
include         /etc/openldap/schema/ssd.schema
#include         /etc/openldap/schema/redhat/rfc822-MailMember.schema
include         /etc/openldap/schema/redhat/autofs.schema
include         /etc/openldap/schema/redhat/kerberosobject.schema

schemacheck     on
#referral       ldap://root.openldap.org:389/
#referral       ldap://esc.standard.k12.ca.us:389/

pidfile         /var/run/slapd.pid
argsfile        /var/run/slapd.args

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

database        ldbm
suffix          "dc=standard,dc=k12,dc=ca,dc=us"
rootdn          "uid=root,ou=People,dc=standard,dc=k12,dc=ca,dc=us"
rootpw          e6x5sa
updatedn        "uid=root,ou=People,dc=standard,dc=k12,dc=ca,dc=us"
directory       /var/ldap
cachesize       5000000
dbcachesize     5000000

index uid,cn,sn,givenname,mail,mailLocalAddress eq
lastmod on

defaultaccess read
access to dn=".*,dc=standard,dc=k12,dc=ca,dc=us"
        by self write
        by dn="uid=root,ou=People,dc=standard,dc=k12,dc=ca,dc=us" write
        by * read
access to attr=userPassword
        by self write
        by dn="uid=root,ou=People,dc=standard,dc=k12,dc=ca,dc=us" write
        by * compare

Hopefully someone can show me the error of my ways

-Jeff



Jefferson K. Davis
Technology and Information Systems Manager
Standard School District
1200 North Chester Ave
Bakersfield, CA  93308
USA
661-392-2110 ext 120