Added changes from rhatto
[matthijs/upstream/backupninja.git] / handlers / ldap.helper
index 44b08cb07a68ec3c039b57d160d8428d1ebef795..9aecec8c0ec53ea19e4c8e6618d1eb867022c9b1 100644 (file)
@@ -1,3 +1,6 @@
+# -*- mode: sh; sh-basic-offset: 3; indent-tabs-mode: nil; -*-
+
+HELPERS="$HELPERS ldap:ldap_database_backup"
 
 ldap_create_file() {
 while true; do
@@ -43,7 +46,7 @@ $passwordfile
 # conf = /etc/ldap/slapd.conf
 # databases = all
 EOF
-     chmod 000 $next_filename
+     chmod 600 $next_filename
      return
 done
 }