LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 07-11-2011, 09:30 PM   #1
Jadedkill
LQ Newbie
 
Registered: Oct 2010
Location: Missouri
Distribution: CentOS, Gentoo
Posts: 19

Rep: Reputation: 0
CentOS ldap server setup


I am currently involved in setting up an openldap server on a CentOS platform. I am having some issues with getting it set up to the point that I can remotely manage the server via phpldapadmin in a web browser. I am running into an issue when starting the slapd daemon. Please see the output below to better understand.

[root@zimbra ~]# service ldap start
Checking configuration files for slapd: bdb_db_open: DB_CONFIG for suffix dc=home,dc=local has changed.
Performing database recovery to activate new settings.
bdb_db_open: Recovery skipped in read-only mode. Run manaul recovery if errors are encountered.
config file testing succeeded
[OK]
Starting slapd: [Failed]
[root@zimbra ~]#

Any help would be great and thanks up front.
 
Old 07-12-2011, 01:50 PM   #2
T3RM1NVT0R
Senior Member
 
Registered: Dec 2010
Location: Internet
Distribution: Linux Mint, SLES, CentOS, Red Hat
Posts: 2,385

Rep: Reputation: 477Reputation: 477Reputation: 477Reputation: 477Reputation: 477
@ Reply

Hi there,

Welcome to LQ!!!

Please have a look at the following link: http://techarold.blogspot.com/2006/0...-recovery.html

I hope this helps.
 
Old 07-12-2011, 03:08 PM   #3
subho.d
Member
 
Registered: Jun 2010
Location: INDIA
Distribution: All Linux & Unix
Posts: 86

Rep: Reputation: 19
Hi, Go the date path and create a file with DB_CONFIG and set ownership to ldap:ldap by the command #chown ldap : ldap DB_CONFIG.
 
Old 07-13-2011, 10:15 PM   #4
Jadedkill
LQ Newbie
 
Registered: Oct 2010
Location: Missouri
Distribution: CentOS, Gentoo
Posts: 19

Original Poster
Rep: Reputation: 0
Unfortunate

Unfortunately niether of the suggestions above worked. I am unsure at this point if I should just start from a fresh install. The recovery was successful and I did re-chown the DB_CONFIG to ldap:ldap but was still unsuccessful in getting the service to start. Is a reboot possibly required to start the service after)?
 
Old 07-14-2011, 07:58 PM   #5
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,359

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
Restart the service yes, reboot machine no (usually). A strong point of Unix is that reboots are rarely reqd.
You may find these links useful
http://www.linuxtopia.org/online_boo...5_ch-ldap.html
http://www.linuxhomenetworking.com/w...DAP_and_RADIUS
 
Old 07-15-2011, 09:02 AM   #6
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
@OP
Check the slapd logs to see if you find anything.
Or you can start slapd in debug mode and watch the output:
Code:
/usr/sbin/slapd -f /etc/openldap/slapd.conf -d 255
Regards
 
Old 07-18-2011, 10:48 PM   #7
Jadedkill
LQ Newbie
 
Registered: Oct 2010
Location: Missouri
Distribution: CentOS, Gentoo
Posts: 19

Original Poster
Rep: Reputation: 0
Resolved.

Unfortunately I needed to get this email server up and going sooner than later. This caused me to end my troubleshooting in the matter and start with a fresh install of the CentOS operating system. I appreciate your comments and help in the ordeal and will definitely keep them in mind the next time. I plan to return to this issue and resolve it as I am curious as to what will fix it if it returns. Thanks again!
 
  


Reply



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
LDAP Server Configuration in CentOS Aneeshvm123 Linux - Server 2 06-16-2010 12:52 AM
how to setup LDAP server lovingaditya28 Linux - Server 3 06-01-2010 12:33 PM
Unable to setup a NIS server setup on CentOS system swatidas11 Linux - Server 3 01-19-2010 07:01 PM
how to setup open ldap server and solaris 10 as ldap client maheshlad Linux - Software 1 10-10-2009 12:55 AM
Centos samba server authenticating with windows LDAP server GuodMan Linux - Server 4 10-03-2008 01:56 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 01:13 AM.

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
Open Source Consulting | Domain Registration