[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
About the information acquisition from slapd.d
- To: openldap-technical@openldap.org
- Subject: About the information acquisition from slapd.d
- From: nozawat <nozawat@gmail.com>
- Date: Mon, 5 Sep 2011 17:50:03 +0900
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; bh=GsqQts+5DhZqF338DH6IVrxdfoezpErrN/ntep9QVZ8=; b=NwZBaAPqTfgi50CyOwK2Ed92g4ehO3L9ohWFwaSwGswq6kAOw7bsU10hkn7xV68Fkz J0LCOacH8umnNdcBobYOmyw3WpFUSb7tPfX9gUu7PBxqGuGbwZrZ2nfluRIOv5lDSiKN xfJUpolfzMJ6iuFVrk4T+mJJVcihywowWZ7kM=
Hi
It is a question about the setting when I use slapd.d.
1.I acquire PID information in the following scripts, but will not have any problem?
$config_file appoints slapd.d directory.
----
pid_file=`sed -ne \
's/^olcPidFile:[[:space:]]\+\(.\+\)[[:space:]]*/\1/p' \
"$config_file"/'cn=config.ldif' 2>/dev/null`
----
2.I am going to acquire information to use in the following scripts in ldapsearch -b.
----
for suffix in `find "$config_file"/'cn=config' -type f -name olcDatabase* -exec \
sed -ne 's/^[[:space:]]*olcSuffix:[[:space:]]\+\(.\+\)/\1/p' {} \;`
----
The script mentioned above is a part of a script for slapd monitoring to use it in pacemaker.
Because ldap is not an expert, I want to hear the opinion of the person of the expert.
Regards,
Tomo