X-Git-Url: https://git.stderr.nl/gitweb?a=blobdiff_plain;f=handlers%2Fldap.helper;fp=handlers%2Fldap.helper;h=0000000000000000000000000000000000000000;hb=579ea902ba24854b3c9acb307cda7e996e8e41a3;hp=697c720209595a84c62de09a7bd8fc32a7cd938e;hpb=be75e4e6c536882c14db9a41c61585e7a9c045f6;p=matthijs%2Fupstream%2Fbackupninja.git diff --git a/handlers/ldap.helper b/handlers/ldap.helper deleted file mode 100644 index 697c720..0000000 --- a/handlers/ldap.helper +++ /dev/null @@ -1,78 +0,0 @@ -# -*- mode: sh; sh-basic-offset: 3; indent-tabs-mode: nil; -*- - -HELPERS="$HELPERS ldap:ldap_database_backup" - -ldap_create_file() { -while true; do - checkBox "ldap action wizard" "check options (slapcat OR ldapsearch)" \ - "slapcat" "export ldif using slapcat" on \ - "ldapsearch" "export ldif using ldapsearch" off \ - "compress" "compress the ldif output files" on - status=$? - compress="compress = off" - method="method = " - restart="restart = no" - binddn="" - passwordfile="" - [ $status = 1 ] && return; - result="$REPLY" - for opt in $result; do - case $opt in - '"compress"') compress="compress = on";; - '"slapcat"') - method="method = slapcat" - [ "$_RESTART" == "yes" ] && restart="restart = yes" - ;; - '"ldapsearch"') - method="method = ldapsearch" - inputBox "ldap action wizard" "ldapsearch requires authentication. Specify here what password file to use. It must have the password with no trailing return and it should not be world readable." - [ $? = 1 ] && return - passwordfile="passwordfile = $REPLY" - inputBox "ldap action wizard" "ldapsearch requires authentication. Specify here what DN to bind as:" - [ $? = 1 ] && return - binddn="binddn = $REPLY" - require_packages ldap-utils - ;; - esac - done - get_next_filename $configdirectory/30.ldap - cat > $next_filename <