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

Can't make ldap backup with sudo -u zimbra #156

Open
soniqsoft opened this issue Jan 25, 2021 · 3 comments
Open

Can't make ldap backup with sudo -u zimbra #156

soniqsoft opened this issue Jan 25, 2021 · 3 comments

Comments

@soniqsoft
Copy link

ISSUE TYPE
  • Bug Report
ENVIRONMENT VERSION
  • Zmbackup Version: 1.2.5
  • Zimbra Version: 8.8.15
  • Linux Distribution & Version: Ubuntu 18.04.5 LTS
SUMMARY

Hi,
I'm trying to run full and incremental backups with zmbackup cron included in package.
Unfortunately can't get it done due to ldap backup fail with messages:

Zmbackup: LDAP - Can't extract accounts from LDAP - Error below:
Zmbackup: ldap_start_tls: Connect error (-11)#012#011additional info: error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed (self signed certificate in certificate chain)#012ldap_result: Can't contact LDAP server (-1)
Zmbackup: Mail sent to admin@email to notify about the backup routine conclusion.
Zmbackup: Excluding the temporary files before close.

However I can:

telnet mail.server 389

without any issue.

I've got letsencrypt certificate deployed on my zimbra server.

The problem does not exist when I'm running full or incremental backup in following sequence:

su - zimbra
zmbackup -f -ldp
or
zmbackup -f
or
zmbackup -i`

Any idea how to get it working with cron?

Thanks in advance.
M@riusz

STEPS TO REPRODUCE
Install zimbra
Install and deploy letsencrypt certificate based on this: https://github.com/VojtechMyslivec/letsencrypt-zimbra
Install zmbackup following this: https://github.com/Zmbackup/zmbackup
sudo -u zimbra zmcontrol -ldp
ACTUAL RESULTS

In syslog file I can see:

Zmbackup: LDAP - Can't extract accounts from LDAP - Error below:
Zmbackup: ldap_start_tls: Connect error (-11)#012#011additional info: error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed (self signed certificate in certificate chain)#012ldap_result: Can't contact LDAP server (-1)
Zmbackup: Mail sent to admin@email to notify about the backup routine conclusion.
Zmbackup: Excluding the temporary files before close.

and I'm receiving an email confirming proper result of the backup task:

Greetings Administrator,
    

This is an automatic message to inform you that the process for Account - Only LDAP BACKUP that you scheduled ended right now.
    
Here some information about this session:

Size: 0
Accounts: 0
Status: SUCCESS

Regards,
Zmbackup Team
    

Summary of files:
@lucascbeyeler
Copy link
Owner

I will take a look at this

@soniqsoft
Copy link
Author

Great! Thanks!

@lucascbeyeler
Copy link
Owner

Could you try executing this command before zmbackup?

export LDAPTLS_REQCERT=never

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants