TCLUG Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Need help w/ LDAP



Anyone experienced w/ LDAP????


I'm having difficulty getting my first LDAP server up and running.
When I attempt to search the server, I get the error
	
	ldap_bind: Can't contact LDAP server

In /var/log/messages I see the error:

	Jul 20 17:37:53 ninja slapd[2575]: fd=8 connection from localhost (127.0.0.1) denied. 

Here's what I did:

1. Modified slapd.conf as follows:

# 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=Real Time Enterprises, c=US"
rootdn          "cn=Amy, o=Real Time Enterprises, c=US"
rootpw          secret


2. Created ldif file:

dn: o=Real Time Enterprises, c=US
o: Real Time Enterprises
objectclass: organization

dn: cn=Amy, o=Real Time Enterprises, c=US
cn: Amy
sn: Tanner
mail: amy@real-time.com
objectclass: person

3. Created the database:

% ldif2ldbm -f slapd.conf -i ldif

I get the following messages in /var/log/messages:

Jul 20 17:43:51 ninja ldif2id2entry: next_id_read: could not open "(null)" 
Jul 20 17:43:51 ninja ldif2id2entry: next_id_write(1): could not open "(null)" Jul 20 17:43:51 ninja ldif2id2entry: ldbm backend nextid save failed! 
Jul 20 17:43:51 ninja ldif2id2children: next_id_read: could not open "(null)" 
Jul 20 17:43:51 ninja ldif2id2children: next_id_write(1): could not open "(null)" 
Jul 20 17:43:51 ninja ldif2id2children: ldbm backend nextid save failed! 
Jul 20 17:43:51 ninja ldif2index: next_id_read: could not open "(null)" 
Jul 20 17:43:51 ninja ldif2index: next_id_write(1): could not open "(null)" 
Jul 20 17:43:51 ninja ldif2index: ldbm backend nextid save failed! 
Jul 20 17:43:51 ninja ldif2ldbm: next_id_read: could not open "(null)" 
Jul 20 17:43:51 ninja ldif2ldbm: next_id_write(1): could not open "(null)" 
Jul 20 17:43:51 ninja ldif2ldbm: ldbm backend nextid save failed! 
Jul 20 17:43:51 ninja ldif2index: next_id_read: could not open "(null)" 
Jul 20 17:43:51 ninja ldif2index: next_id_write(1): could not open "(null)" 


4. Do a search to test:

% ldapsearch -b "o=Real Time Enterprises, c=US" -h 127.0.0.1 'objectclass=*'
ldap_bind: Can't contact LDAP server

Which results in this error in /var/log/messages:

Jul 20 17:45:32 ninja slapd[2575]: fd=8 connection from localhost (127.0.0.1) denied. 


It looks to me like the database is perhaps never getting created for some
reason.

I'm running:
openldap-1.2.3
Red Hat 6.0 for Intel 

Any help would be appreciated.  Thank you!
-- 
Amy Tanner                                      Voice: 612.943.8700
Real Time Enterprises, Inc.	                  Fax: 612.943.8500
amy@real-time.com		    	   http://www.real-time.com
PGP fingerprint =  67 6C 8F DB B1 7A 8D 41  DC 7B CA 0B 28 1E 67 AD