Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
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.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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:
Code:
pkill slapd
cd /var/lib/ldap
db_recover -v
/usr/lib/openldap/slapd -d 65535
Could you also post the openldap and BerkeleyDB versions, how you installed them and also slapd.conf?
i think that the problem is not from the packages because i aready installed them and ldap runnung normal but when i restart i think my ldap database corrupted by someway
so ldap cannot contact server
I'm not familiar with SuSE's version of LDAP, but usually it's pretty similar between distributions.
I have my own little page on LDAP. I'm not sure how useful it would be for SuSE, but perhaps the steps about setting up the config files and database might be useful.
i instal db-utilts and run db_recovery the result was :
Quote:
db_recover -v Finding last valid log LSN: file: 1 offset 64236
Recovery starting from [1][64052]
Recovery complete at Thu Oct 1 07:46:24 2009
Maximum transaction ID 80000002 Recovery checkpoint [1][64236]
then i do slaptest -d -l the result of last 6 lines
Quote:
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.