Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
lomikas1 opened this issue Jan 4, 2022 · 1 comment

Comments

@lomikas1
Copy link

lomikas1 commented Jan 4, 2022

ISSUE TYPE
  • Bug Report
ENVIRONMENT VERSION
  • Zmbackup Version: 1.2.6
  • Zimbra Version: 8.8.15
  • Linux Distribution & Version: Ubuntu 18.04.6 LTS
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
@lomikas1 lomikas1 changed the title zmbacrup -r corrupts ldap directory - error in lib/bash/ParallelAction.sh zmbackup -r corrupts ldap directory - error in lib/bash/ParallelAction.sh Jan 4, 2022
@vdeville
Copy link
Contributor

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

iqkotze pushed a commit to iqkotze/zmbackup that referenced this issue May 6, 2022
alsyundawy added a commit to alsyundawy/zmbackup that referenced this issue May 10, 2022
lucascbeyeler added a commit that referenced this issue May 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants