[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
Re: passwd database
could you try the openldap version of ldapsearch and run a few of the debug
options?
The error sounds like that the search base is incorrect (or at least not found)
ldapsearch -L -h yalumba -D "dc=sees,dc=bangor,dc=ac,dc=uk" -b
"ou=passwd,dc=sees,dc=bangor,dc=ac,dc=uk" "(objectclass=*)"
Do the following in steps (here's a shell script to make your life easier)
#!/bin/sh
# assuming your openldap ldapsearch is in /usr/local/bin
# try "dc=sees,dc=bangor,dc=ac,dc=uk" first and then
# try "ou=passwd,dc=sees,dc=bangor,dc=ac,dc=uk"
/usr/local/bin/ldapsearch \
-LLL \
-h <specify FQDN of server here> \
-D "cn=robh,dc=sees,dc=bangor,dc=ac,dc=uk"
-W \
-b "dc=sees,dc=bangor,dc=ac,dc=uk" \
-s sub \
"(objectclass=*)"
try that on mine it generates the whole content (equivalent of doing a slapcat)
good luck
At 02:29 PM 11/8/2001 +0000, you wrote:
Hi,
Sorry if this isn't the correct place to ask this..
I'm having trouble getting the passwd database to work. My slapd.conf
database looks like this:
include /usr/local/etc/openldap/schema/core.schema
pidfile /usr/local/var/slapd.pid
argsfile /usr/local/var/slapd.args
database ldbm
suffix "dc=sees,dc=bangor,dc=ac,dc=uk"
rootdn "cn=robh,dc=sees,dc=bangor,dc=ac,dc=uk"
rootpw foo #not really
index objectClass eq
database passwd
suffix "ou=passwd,dc=sees,dc=bangor,dc=ac,dc=uk"
access to * by * read
I then try:
ldapsearch -L -h yalumba -D "dc=sees,dc=bangor,dc=ac,dc=uk" -b
"ou=passwd,dc=sees,dc=bangor,dc=ac,dc=uk" "(objectclass=*)"
(it's the sun ldapsearch)
which returns a no such object error
Any thoughts or pointers to documentation would be appreciated.
Rob
--
______________________________________________________________
| o o ^ |Robert Horton --- r.t.horton@sees.bangor.ac.uk
| | / \ |School of Informatics
| \___/ / o \ |University of Wales, Bangor
| / o \|http://www.bangor.ac.uk/~eeu41a
|_______/_______|______________________________________________|