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

Getting started with new database - problems



I'm having a few problems getting started. I've got Openldap compiled up
and it working. I can create the database alright. I've used the passwd to
ldif utility to create a ldif file, and then added some fields to it. I
imports it but when I try to query it I get nothing. Below is a sample of
the file I created and below that the slapd.conf file.

When I do an ldapsearch I get no such object returned.

Peter

-----
dn: o=My Organisation, c=AU
objectclass organization

dn: ou=Accounting ,o=My Organisation c=AU
objectClass: organizationalUnit

dn: uid=doej ou=Accounting , o=My Organisation, c=AU
uid: doej
cn: John Doegivenname: John
sn: Doe
ou: Accounting
mail: doej@xxx.com.au
objectClass: account
objectClass: posixAccount
objectClass: top
userPassword: {crypt}x
loginShell: /bin/bash
uidNumber: 501
gidNumber: 100
homeDirectory: /home/doej
gecos: John Doe
-----
#
# See slapd.conf(5) for details on configuration options.
# This file should NOT be world readable.
#
include         /etc/ldap/slapd.at.conf
include         /etc/ldap/slapd.oc.conf
schemacheck     off
#referral       ldap://ldap.itd.umich.edu

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

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

database        ldbm
suffix          "o=My Organisation, c=AU"
directory       /var/ldap
index           cn,sn,ou        pres,eq,approx
index           objectclass     pres,eq
index           default         none                  
rootdn          "cn=root, ou=Accounting, o=My Organisation, c=AU"
rootpw          secret
# cleartext passwords, especially for the rootdn, should
# be avoid.  See slapd.conf(5) for details.                      

--------------------------------------------------------------------
| Windows has detected that the mouse has moved, please reboot for |
| this change to take effect                                       |
--------------------------------------------------------------------
Peter Robinson
ribbo@iinet.net.au
http://www.iinet.net.au/~ribbo/