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

What am I doing wrong?



I'm new to this mailing list, and new to OpenLDAP, so please bear with me.  I'm running OpenLDAP 2.0.7 (which came with Mandrake Linux 8.0).  I've read through the documentation and set it up as I thought it should be setup, but I can't seem to get ldapsearch to find anything.  Here's how I've configured it.

My ldap.conf file:

#
# LDAP Defaults
#

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

BASE    dc=bloomu, dc=edu
HOST    surveyor.bloomu.edu
PORT    389

#SIZELIMIT      12
#TIMELIMIT      15
#DEREF          never

My slapd.conf file:

#
# See slapd.conf(5) for details on configuration options.
# This file should NOT be world readable.
#
include         /etc/openldap/schema/core.schema
include         /etc/openldap/schema/cosine.schema
include         /etc/openldap/schema/inetorgperson.schema
include         /etc/openldap/schema/misc.schema
schemacheck     on
#referral       ldap://root.openldap.org/
access to * by * read
pidfile         /var/run/slapd.pid
argsfile        /var/run/slapd.args

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

database        ldbm
suffix          "dc=bloomu, dc=edu"
#suffix         "o=BLOOMU"
rootdn          "cn=Manager, dc=bloomu, dc=edu"
#rootdn         "cn=Manager, o=BLOOMU"
rootpw          secret
# cleartext passwords, especially for the rootdn, should
# be avoid.  See slapd.conf(5) for details.
directory       /var/lib/ldap
index           default pres,eq
index           objectClass,uid
index           cn,sn eq,sub
index           mail eq,sub

As a test, I added one object via slapadd (I'm going to need to do batch adds, so I figured to get familiar with the process) from an LDIF file with these contents:

dn: cn=Kiersten Loss,dc=bloomu,dc=edu
uid: kloss
cn: Kiersten Loss
gn: Kiersten
sn: Loss
mail: kloss@planetx.bloomu.edu
homePhone: 570-966-1606
homePostalAddress: 412 Dandee Dr. Mifflinburg PA 17844
objectClass: top
objectClass: person
objectClass: inetOrgPerson

I then did a slapcat to make sure of the entry in the database.  Here's the result:

dn: cn=Kiersten Loss,dc=bloomu,dc=edu
uid: kloss
cn: Kiersten Loss
givenName: Kiersten
sn: Loss
mail: kloss@planetx.bloomu.edu
homePhone: 570-966-1606
homePostalAddress: 412 Dandee Dr. Mifflinburg PA 17844
objectClass: top
objectClass: person
objectClass: inetOrgPerson

My ldapfilter.conf, ldapsearchprefs.conf, and ldaptemplates.conf files haven't been changed from the base installation.  When I run this command:

ldapsearch -v -b 'dc=bloomu,dc=edu' '(uid=kloss)'

I get this result:

ldap_init( <default>, 0 )
filter pattern: (uid=kloss)
returning: ALL
filter is: ((uid=kloss))
0 matches
ldap_search: No such object

I've varied the ldapsearch by changing the filter pattern, changing the scope, overtly specifying the base dn, everything I can think of, but the results are always similar.  What am I missing?


Doug Loss                 Always do right.  This
Data Network Coordinator  will gratify some people
Bloomsburg University     and astonish the rest.
dloss@bloomu.edu                Mark Twain