aboutsummaryrefslogtreecommitdiff
path: root/handlers/ldap.helper.in
diff options
context:
space:
mode:
authorintrigeri <intrigeri@boum.org>2008-06-23 21:07:19 +0000
committerintrigeri <intrigeri@boum.org>2008-06-23 21:07:19 +0000
commitf9a0906320659de2483519f230ee5696cd3ab12c (patch)
tree6b948911b2e50356517b2f107effe5c0c0013a4b /handlers/ldap.helper.in
parent7772134eb3cf7e6311f033059a234b746dceabbe (diff)
downloadbackupninja-f9a0906320659de2483519f230ee5696cd3ab12c.tar.gz
backupninja-f9a0906320659de2483519f230ee5696cd3ab12c.tar.bz2
LDAP: support HDB backend just as the BDB one
Diffstat (limited to 'handlers/ldap.helper.in')
-rw-r--r--handlers/ldap.helper.in18
1 files changed, 11 insertions, 7 deletions
diff --git a/handlers/ldap.helper.in b/handlers/ldap.helper.in
index 35b47a3..a00c40a 100644
--- a/handlers/ldap.helper.in
+++ b/handlers/ldap.helper.in
@@ -61,19 +61,24 @@ done
ldap_wizard() {
bdb=no
+ hdb=no
ldbm=no
for backend in `grep -e "^backend" /etc/ldap/slapd.conf | @AWK@ '{print $2}'`; do
- if [ "$backend" == "bdb" -a "$bdb" == "no" ]; then
+ if [ "$backend" == "bdb" ]; then
bdb=yes
- elif [ "$backend" == "ldbm" -a "$ldbm" == "no" ]; then
+ elif [ "$backend" == "hdb" ]; then
+ hdb=yes
+ elif [ "$backend" == "ldbm" ]; then
ldbm=yes
fi
done
- if [ "$bdb" == "yes" -a "$ldbm" == "no" ]; then
- msgBox "ldap action wizard" "It looks like the backend in your slapd.conf is set to BDB. If this is not the case, exit this wizard! From this point on, we will assume BDB backend, which might have disasterious consequences if this is incorrect."
- _RESTART=no
- ldap_create_file
+ if [ "$bdb" == "yes" -o "$hdb" == "yes" ]; then
+ if [ "$ldbm" == "no" ]; then
+ msgBox "ldap action wizard" "It looks like the backend in your slapd.conf is set to BDB or HDB. If this is not the case, exit this wizard! From this point on, we will assume BDB or HDB backend, which might have disasterious consequences if this is incorrect."
+ _RESTART=no
+ ldap_create_file
+ fi
elif [ "$ldbm" == "yes" ]; then
msgBox "ldap action wizard" "It looks like the backend in your slapd.conf is set to LDBM. Because of this, you will have less options (because it is not safe to use slapcat while slapd is running LDBM)."
_RESTART=yes
@@ -83,4 +88,3 @@ ldap_wizard() {
return
fi
}
-