LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 06-05-2010, 06:42 PM   #1
zubat123
LQ Newbie
 
Registered: Jun 2010
Posts: 6

Rep: Reputation: 0
ldap error: bdb_db_open: database already in use


the ldap service starts successfully. but when running the script "migrate_all_offline.sh" i get the error below. i am unable to log into the client system using ldap. has anyone experienced this kind of error? thanks

Preparing LDAP database...
bdb_db_open: database already in use
backend_startup_one: bi_db_open failed! (-1)
slap_startup failed
Migration failed: saving failed LDIF to /tmp/nis.ldif.zf5108

running 'slaptest -v -f /etc/openldap/slapd.conf -u' was successful though
 
Old 06-06-2010, 04:01 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 12,590

Rep: Reputation: 1799Reputation: 1799Reputation: 1799Reputation: 1799Reputation: 1799Reputation: 1799Reputation: 1799Reputation: 1799Reputation: 1799Reputation: 1799Reputation: 1799
Hi,

From the script name it looks like you have to run it while slapd is stopped. That's why it complains that the database is in use.

Regards
 
Old 06-06-2010, 05:50 AM   #3
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2393Reputation: 2393Reputation: 2393Reputation: 2393Reputation: 2393Reputation: 2393Reputation: 2393Reputation: 2393Reputation: 2393Reputation: 2393Reputation: 2393
Hi,

bathory's hunch is correct: LDAP MigrationTools (see bottom of the page).

Hope this helps.
 
Old 06-06-2010, 07:19 PM   #4
zubat123
LQ Newbie
 
Registered: Jun 2010
Posts: 6

Original Poster
Rep: Reputation: 0
thanks for the tip guys. still getting errors though. i stopped ldap service then ran the migrate_all_offline.sh script and it gave me errors below. i remember reading that the first run will give errors but i ran this twice and still same error. i'm still unable to ssh or log into the client machine through ldap.

[root@server~]# sh /usr/share/openldap/migration/migrate_all_offline.sh
=> bdb_tool_entry_put: id2entry_add failed: DB_KEYEXIST: Key/data pair already exists (-30996)
=> bdb_tool_entry_put: txn_aborted! DB_KEYEXIST: Key/data pair already exists (-30996)
slapadd: could not add entry dn="dc=kuroi,dc=com" (line=5): txn_aborted! DB_KEYEXIST: Key/data pair already exists (-30996)
Migration failed: saving failed LDIF to /tmp/nis.ldif.lQ5812

on the client side, if i configure env LANG=C authconfig-tui to use ldap, md5, shadow and point to the ldap server, i get a "fail" trying to start autofs. if i do the manual or permanent (fstab) method, i get wrong ownership for the username when mounting server's /home directory.

[root@client~]# ll /home
total 20
drwx------ 2 root root 16384 Apr 26 06:48 lost+found
drwx------ 7 tabuz users 4096 Jun 3 16:49 zubat
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
NTOP Error Traversing Database for ipnum = - Perhaps database is corrupt? soslinux Linux - Networking 2 03-03-2010 07:28 AM
LDAP use with Oracle database nhay Linux - Server 13 08-11-2009 10:00 AM
DBI Connect Failed:Access denied for user ''@'localhost' to database <database> error kaplan71 Linux - Software 3 06-05-2009 01:39 PM
How to verify the account's password within ldap database? ioiioi Linux - Server 0 02-25-2007 11:52 PM
DHCP database stored in ldap marvin00001 Linux - Networking 2 10-18-2005 11:51 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:11 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration