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 01-18-2016, 04:55 AM   #1
kayyazka
LQ Newbie
 
Registered: Dec 2015
Posts: 1

Rep: Reputation: Disabled
Warning mesaage after Install LDAP on centos


Hi all,

I has been install LDAP on centos 6 but i got the message warning

/etc/init.d/slapd restart
Stopping slapd: [ OK ]
Checking configuration files for slapd: [WARNING]
569cc218 ldif_read_file: checksum error on "/etc/openldap/slapd.d/cn=config/olcDatabase={0}config.ldif"
config file testing succeeded
Starting slapd: [ OK ]

I follow this link to install :
http://blog.zwiegnet.com/linux-serve...r-on-centos-6/

What should i do to fix it?


Thank you in advance
kayyazka
 
Old 01-19-2016, 02:38 AM   #2
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
Welcome to LQ,

Most likely you've edited the file in question by hand, that's why the CRC is changed and slapd is complaining.

To fix it, first you have to install the perl-Archive-Zip package if not already installed:
Code:
yum install perl-Archive-Zip
Make a backup copy of the corrupted file:
Code:
cp "/etc/openldap/slapd.d/cn=config/olcDatabase={0}config.ldif" /tmp
Delete the first 2 lines of the file:
Quote:
# AUTO-GENERATED FILE - DO NOT EDIT!! Use ldapmodify.
# CRC32 XXXXXXXX
Use crc32 to calculate the new CRC:
Code:
crc32 "/etc/openldap/slapd.d/cn=config/olcDatabase={0}config.ldif"
Then re-add the 2 lines replacing the crc32 value with the one calculated in the previous step

Regards

Last edited by bathory; 01-19-2016 at 04:06 AM.
 
  


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
LXer: How to install LDAP 389 Directory Server on a CentOS 6 VPS LXer Syndicated Linux News 0 02-23-2015 07:11 AM
Apache AD/ldap worked with centos 5.6 not with centos 5.8 cnelson Linux - Server 1 07-12-2012 06:47 AM
CentOS 5.6 DC with LDAP Backend - Cant populate LDAP Totenkopf Linux - Server 4 05-28-2012 10:40 PM
Want to install Mail Server on CentOS 5.0 which support both Ldap and Active Drectory ad1325 Linux - Server 2 03-19-2009 12:27 PM
LDAP install issues centOS 5 VMware radialshifter Linux - Server 1 11-15-2008 03:56 AM

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

All times are GMT -5. The time now is 06:15 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
Open Source Consulting | Domain Registration