Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
i have install my openldap2,openldap2_client,nss_ldap,pam_ldap,db42 on suse enterprise10 and configure my ldap and add some organisation and users by ldapadd in DIT
buy when i restart my pc and try to enter again after 2 days
I tried to enter some ldap user but the follwing error appear
ldap_bind:cannot contact to ldap (-1)
and also when i try to search in my DIT same error occure
Debug mode is when you run slapd with the "-d" option, so it does not run in the background and produces more verbose output.
From the ps output, you have 2 slapd processes running (hanged?). You can kill them, try to recover the database, restart and see if it works. To do all of the above you need to run the following commands:
/usr/lib/openldap/slapd -d 65535
Could you also post the openldap and BerkeleyDB versions, how you installed them and also slapd.conf?
i instal db-utilts and run db_recovery the result was :
db_recover -v Finding last valid log LSN: file: 1 offset 64236
Recovery starting from 
Recovery complete at Thu Oct 1 07:46:24 2009
Maximum transaction ID 80000002 Recovery checkpoint 
then i do slaptest -d -l the result of last 6 lines
config file testing succeeded
slaptest shutdown: freeing system resources.
bdb(dc=linuxcbt,dc=internal): Database handles remain at environment close
bdb(dc=linuxcbt,dc=internal): Open database handle: dn2id.bdb
bdb(dc=linuxcbt,dc=internal): Open database handle: id2entry.bdb
bdb_db_destroy: close failed: Invalid argument (22)
Well, I don't know what is the problem with the database. Are you sure it's not some security thing, like SELinux or Apparmor?
If it's not a security problem, you can (re)move everything from /var/lib/ldap (make sure slapd is not running), use slapadd to add your initial ldif, start slapd and see what happens.