LinuxQuestions.org
Review your favorite Linux distribution.
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 10-30-2013, 09:08 PM   #1
tuananhk53
LQ Newbie
 
Registered: Oct 2013
Location: Hanoi Vietnam
Posts: 26

Rep: Reputation: Disabled
service slapd start


hi,
i find a script for start slapd by service slapd start command
Link here
http://ltb-project.org/wiki/document...dap-initscript

i modify slapd file in /etc/init.d and /etc/default
Code:
# OpenLDAP directory and files
SLAPD_PATH="/usr/local"
SLAPD_PID_FILE="$SLAPD_PATH/var/run/slapd.pid"
SLAPD_CONF="$SLAPD_PATH/etc/openldap/slapd.conf"
SLAPD_CONF_DIR=""
SLAPD_SERVICES="ldap://$IP:$PORT ldaps://$SSLIP:$SSLPORT"
SLAPD_PARAMS=""
SLAPD_BIN="$SLAPD_PATH/libexec/slapd"
SLAPD_USER=""
SLAPD_GROUP=""

DATA_PATH="$SLAPD_PATH/var/openldap-data"

SLAPCAT_BIN="$SLAPD_PATH/sbin/slapcat"
SLAPINDEX_BIN="$SLAPD_PATH/sbin/slapindex"
SLAPTEST_BIN="$SLAPD_PATH/sbin/slaptest"

SLURPD_ACTIVATE="0"
SLURPD_PID_FILE="$SLAPD_PATH/var/run/slurpd.pid"
SLURPD_PARAMS=""
SLURPD_BIN="$SLAPD_PATH/libexec/slurpd"
Code:
service slapd start
slapd[2777]: [INFO] Using /etc/default/slapd for configuration
slapd[2782]: [INFO] Launching OpenLDAP configuration test...
slapd[2784]: [ALERT] OpenLDAP configuration test failed
help me for this script
Thanks
 
Old 10-31-2013, 01:54 PM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,635

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by tuananhk53 View Post
hi,
i find a script for start slapd by service slapd start command Link here
http://ltb-project.org/wiki/document...dap-initscript

i modify slapd file in /etc/init.d and /etc/default
Code:
# OpenLDAP directory and files
SLAPD_PATH="/usr/local"
SLAPD_PID_FILE="$SLAPD_PATH/var/run/slapd.pid"
SLAPD_CONF="$SLAPD_PATH/etc/openldap/slapd.conf"
SLAPD_CONF_DIR=""
SLAPD_SERVICES="ldap://$IP:$PORT ldaps://$SSLIP:$SSLPORT"
SLAPD_PARAMS=""
SLAPD_BIN="$SLAPD_PATH/libexec/slapd"
SLAPD_USER=""
SLAPD_GROUP=""

DATA_PATH="$SLAPD_PATH/var/openldap-data"

SLAPCAT_BIN="$SLAPD_PATH/sbin/slapcat"
SLAPINDEX_BIN="$SLAPD_PATH/sbin/slapindex"
SLAPTEST_BIN="$SLAPD_PATH/sbin/slaptest"

SLURPD_ACTIVATE="0"
SLURPD_PID_FILE="$SLAPD_PATH/var/run/slurpd.pid"
SLURPD_PARAMS=""
SLURPD_BIN="$SLAPD_PATH/libexec/slurpd"
Code:
service slapd start
slapd[2777]: [INFO] Using /etc/default/slapd for configuration
slapd[2782]: [INFO] Launching OpenLDAP configuration test...
slapd[2784]: [ALERT] OpenLDAP configuration test failed
help me for this script
Nothing to help you WITH...did you read/understand the error?? It's telling you that you have a problem in your OpenLDAP configuration...and if you put the error into Google, the very first hit is:
http://www.openldap.org/faq/data/cache/358.html

...complete with suggestions on how to check your LDAP logs, and an explanation of the slaptest tool, which will tell you where the error(s) are in your config.
 
1 members found this post helpful.
Old 11-05-2013, 02:47 AM   #3
tuananhk53
LQ Newbie
 
Registered: Oct 2013
Location: Hanoi Vietnam
Posts: 26

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by TB0ne View Post
Nothing to help you WITH...did you read/understand the error?? It's telling you that you have a problem in your OpenLDAP configuration...and if you put the error into Google, the very first hit is:
http://www.openldap.org/faq/data/cache/358.html

...complete with suggestions on how to check your LDAP logs, and an explanation of the slaptest tool, which will tell you where the error(s) are in your config.
yeah, thanks for help, TB0ne
 
  


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
Slapd.conf removed- Where do I edit in slapd.d DIT for same info? dman777 Linux - Server 1 03-12-2012 03:47 AM
CentOS 6.2 service slapd start does not work chenbo Linux - Newbie 1 01-20-2012 10:51 PM
Unable to start slapd, syncrepl error wills Linux - Server 6 09-22-2011 01:35 PM
[SOLVED] Openldap does not start ./slapd does nothing chinho Linux - Software 3 01-05-2011 04:52 AM
SLAPD wont start xkape Fedora 1 11-13-2006 01:12 PM

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

All times are GMT -5. The time now is 04:04 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