lucascbeyeler / zmbackup

A reliable software written in Shell Script to help you in your daily task to backup and restore mails and accounts from Zimbra Open Source Email Platform. Project in deprecation process. Please help me with Waddles.
GNU General Public License v3.0
145 stars 74 forks source link

zmbackup -r corrupts ldap directory - error in lib/bash/ParallelAction.sh #169

Open lomikas1 opened 2 years ago

lomikas1 commented 2 years ago
ISSUE TYPE
SUMMARY

Restoring ldap entiies from full backup ( in my case to new installation of Zimbra) causing full corruption of ldap directory

STEPS TO REPRODUCE
Make full backup. 
Install new clear zimbra.
Copy full backup to new server.
Replace ldap password in zmbackup.conf
Exec zmbackup -r full_backup or zmbackup -r -ldp full_backup
ACTUAL RESULTS
After that-  ldap is unusable
Error in lib/bash/ParallelAction.sh line 82. 
Contains "$(grep ^dn: "$WORKDIR"/"$1"/"$2".ldiff | awk 'print $2')" > /dev/null 2>&1
Must be "$(grep ^dn: "$WORKDIR"/"$1"/"$2".ldiff | awk '{print $2}')" > /dev/null 2>&1
After correction all works fine
vdeville commented 2 years ago

Hello Yes this code fix one of bug, For me i'v had the error Ldap bind ldap_bind: Confidentiality required (13) To fix this i have added -Z arg to ldapdelete and ldapadd

Thanks