LDAP problem - any help appreciated!
Hi,
I just installed openLDAP on RH 8 and seems that there is some connection between my network file and the ldap server because whenever i try to start the S10network now it only sets up the parameters without bringing up the eth0 and gives the error: ldap_bind: Can't contact LDAP server Whenever I try to do smth with ldap it gives the same error and when i start the slapd deamon there is no output.I ran make test but it choked also with a seg fault and could not start slapd.... Can anyone help me on that?? Thx **********slapd.conf*********8 include /usr/local/etc/openldap/schema/core.schema # Define global ACLs to disable default read access. # Do not enable referrals until AFTER you have a working directory # service AND an understanding of referrals. #referral ldap://root.openldap.org pidfile /usr/local/var/slapd.pid argsfile /usr/local/var/slapd.args # Load dynamic backend modules: # modulepath /usr/local/libexec/openldap # moduleload back_bdb.la # moduleload back_ldap.la # moduleload back_ldbm.la # moduleload back_passwd.la # moduleload back_shell.la # Sample security restrictions # Require integrity protection (prevent hijacking) # Require 112-bit (3DES or better) encryption for updates # Require 63-bit encryption for simple bind # security ssf=1 update_ssf=112 simple_bind=64 # Sample access control policy: # Root DSE: allow anyone to read it # Subschema (sub)entry DSE: allow anyone to read it # Other DSEs: # Allow self write access # Allow authenticated users read access # Allow anonymous users to authenticate # Directives needed to implement policy: # access to dn.base="" by * read # access to dn.base="cn=Subschema" by * read # access to * # by self write # by users read # by anonymous auth # # if no access controls are present, the default policy is: # Allow read by all # # rootdn can always write! ####################################################################### # ldbm database definitions ####################################################################### database bdb suffix "dc=<**>dc=<**>,dc=com" rootdn "cn=Manager,dc=<**>,dc=<**>,dc=com" # Cleartext passwords, especially for the rootdn, should # be avoid. See slappasswd(8) and slapd.conf(5) for details. # Use of strong authentication encouraged. rootpw secret # The database directory MUST exist prior to running slapd AND # should only be accessible by the slapd and slap tools. # Mode 700 recommended. directory /usr/local/var/openldap-data # Indices to maintain index objectClass eq #make test make[1]: Entering directory `/usr/local/src/openldap-2.1.23/tests' ln: `./data': cannot overwrite directory make[1]: [test-bdb] Error 1 (ignored) Initiating LDAP tests for BDB... >>>>> Executing all LDAP tests... >>>>> Test Directory: . >>>>> Backend: bdb >>>>> Starting test000-rootdse ... running defines.sh Datadir is ./data Cleaning up in ./test-db... Starting slapd on TCP/IP port 9009... Using ldapsearch to retrieve the root DSE... Waiting 5 seconds for slapd to start... ./scripts/test000-rootdse: line 49: 12473 Segmentation fault $SLAPD -f $DBCONF -h $MASTERURI -d $LVL $TIMING >$MASTERLOG 2>&1 Waiting 5 seconds for slapd to start... Waiting 5 seconds for slapd to start... Waiting 5 seconds for slapd to start... Waiting 5 seconds for slapd to start... Waiting 5 seconds for slapd to start... ./scripts/test000-rootdse: line 57: kill: (12473) - No such process ldap_bind: Can't contact LDAP server (81) >>>>> Test failed >>>>> ./scripts/test000-rootdse failed (exit 1) make[1]: *** [test-bdb] Error 1 make[1]: Leaving directory `/usr/local/src/openldap-2.1.23/tests' make: *** [test] Error 2 |
Do you have the berkeley db installed? Download the new version from www.sleepycat.com, or at least the version that the readme files say that it requires. Install berkeley db. By default, it should install in /usr/local/BerkeleyDB.4.1. I ended up doing something like this so that it would use the libs and header files from that directory:
Code:
env CPPFLAGS=-I/usr/local/BerkeleyDB.4.1/include LDFLAGS=-L/usr/local/BerkeleyDB.4.1/lib \ Hope this helps |
You have specified a bdb backend (database dbd) without loading the matching module (moduleload back_bdb). Uncomment the moduleload line for back_bdb.
Second, speaking strictly for myself, I don't place to much faith in most 'make test' or 'make check' operations. Just go ahead and 'make install'. Third, after installing a new service like OpenLDAP, don't change anything in your /etc/rc.d directory till you know that everything is working. You can test OpenLDAP by running slapd from the from the command line with a -d argument. Check out man slapd. |
All times are GMT -5. The time now is 05:34 PM. |