[GH-ISSUE #98] Can't extract accounts from LDAP #74

Closed
opened 2026-02-27 08:14:13 +03:00 by kerem · 6 comments
Owner

Originally created by @rodrigomeneguet on GitHub (May 8, 2018).
Original GitHub issue: https://github.com/lucascbeyeler/zmbackup/issues/98

Originally assigned to: @lucascbeyeler on GitHub.

ISSUE TYPE
Bug Report

ENVIRONMENT VERSION
Zmbackup Version: zmbackup-1.2.2
Zimbra Version: 8.8.8
Linux Distribution & Version: Centos 7.4

[zimbra@mail log]$ zmbackup -f
ERROR - Can't extract accounts from LDAP - See log for more information
Nothing to do. Closing...
[root@mail log]# tail messages`
May  8 15:24:22 mail root[18466]: Zmbackup: MAILHOST not informed - setting as 127.0.0.1 instead.
May  8 15:24:22 mail root[18471]: Zmbackup: EMAIL_SENDER not informed - setting as root@adress.com instead
May  8 15:24:22 mail root[18483]: Zmbackup: LDAP - Can't extract accounts from LDAP - Error below:
May  8 15:24:22 mail root[18484]: Zmbackup: ldap_sasl_bind(SIMPLE): Can't contact LDAP server (-1)
May  8 15:24:22 mail root[18508]: Zmbackup: Mail sended to mail@adress.com to notify about the backup routine conclusion.
May  8 15:24:22 mail root[18510]: Zmbackup: Excluding the temporary files before close.
Originally created by @rodrigomeneguet on GitHub (May 8, 2018). Original GitHub issue: https://github.com/lucascbeyeler/zmbackup/issues/98 Originally assigned to: @lucascbeyeler on GitHub. ISSUE TYPE **Bug Report** ENVIRONMENT VERSION Zmbackup Version: **zmbackup-1.2.2** Zimbra Version: **8.8.8** Linux Distribution & Version: **Centos 7.4** ``` [zimbra@mail log]$ zmbackup -f ERROR - Can't extract accounts from LDAP - See log for more information Nothing to do. Closing... ``` ``` [root@mail log]# tail messages` May 8 15:24:22 mail root[18466]: Zmbackup: MAILHOST not informed - setting as 127.0.0.1 instead. May 8 15:24:22 mail root[18471]: Zmbackup: EMAIL_SENDER not informed - setting as root@adress.com instead May 8 15:24:22 mail root[18483]: Zmbackup: LDAP - Can't extract accounts from LDAP - Error below: May 8 15:24:22 mail root[18484]: Zmbackup: ldap_sasl_bind(SIMPLE): Can't contact LDAP server (-1) May 8 15:24:22 mail root[18508]: Zmbackup: Mail sended to mail@adress.com to notify about the backup routine conclusion. May 8 15:24:22 mail root[18510]: Zmbackup: Excluding the temporary files before close. ```
kerem 2026-02-27 08:14:13 +03:00
  • closed this issue
  • added the
    Question
    label
Author
Owner

@lucascbeyeler commented on GitHub (May 11, 2018):

Hello @rodrigomeneguet

This is not a bug.... it's looks like you don't have part of the variables inside the /etc/zmbackup/zmbackup.conf. Try recreate the file with all the fields with the correct values and try again.

Regards,
Lucas Costa Beyeler

<!-- gh-comment-id:388475973 --> @lucascbeyeler commented on GitHub (May 11, 2018): Hello @rodrigomeneguet This is not a bug.... it's looks like you don't have part of the variables inside the /etc/zmbackup/zmbackup.conf. Try recreate the file with all the fields with the correct values and try again. Regards, Lucas Costa Beyeler
Author
Owner

@rodrigomeneguet commented on GitHub (May 15, 2018):

Hello Lucas, really, the problem was in the variable LDAPSERVER, it was filled with 127.0.0.1, just change to the corresponding ip.
Thank you very much.

<!-- gh-comment-id:389281956 --> @rodrigomeneguet commented on GitHub (May 15, 2018): Hello Lucas, really, the problem was in the variable LDAPSERVER, it was filled with 127.0.0.1, just change to the corresponding ip. Thank you very much.
Author
Owner

@lucascbeyeler commented on GitHub (May 20, 2018):

Hello @rodrigomeneguet

Good to know that your problem was solved. If you need anything just reopen this issue (if it is the same subject) or open a new one.

Regards,
Lucas Costa Beyeler

<!-- gh-comment-id:390499203 --> @lucascbeyeler commented on GitHub (May 20, 2018): Hello @rodrigomeneguet Good to know that your problem was solved. If you need anything just reopen this issue (if it is the same subject) or open a new one. Regards, Lucas Costa Beyeler
Author
Owner

@diterdepaula commented on GitHub (May 27, 2018):

Oi Lucas, estou com o mesmo problema acima, qual o formato que deve-se informar na linha ldap:
Simplesmente assim: LDAPSERVER=127.0.0.1
Ou assim: ldap://127.0.0.1:389
Valeu.

<!-- gh-comment-id:392389268 --> @diterdepaula commented on GitHub (May 27, 2018): Oi Lucas, estou com o mesmo problema acima, qual o formato que deve-se informar na linha ldap: Simplesmente assim: LDAPSERVER=127.0.0.1 Ou assim: ldap://127.0.0.1:389 Valeu.
Author
Owner

@diterdepaula commented on GitHub (May 28, 2018):

Em tempo..

  • ERR='++ ldapsearch -x -H 127.0.0.1 -D uid=zimbra,cn=admins,cn=zimbra -w xxxxxxxxxx -b '''''' -LLL '''(objectclass=zimbraAccount)''' zimbraMailDeliveryAddress
    Could not parse LDAP URI(s)=127.0.0.1 (3)'
  • echo 'ERROR - Can'''t extract accounts from LDAP - See log for more information'
<!-- gh-comment-id:392394226 --> @diterdepaula commented on GitHub (May 28, 2018): Em tempo.. + ERR='++ ldapsearch -x -H 127.0.0.1 -D uid=zimbra,cn=admins,cn=zimbra -w xxxxxxxxxx -b '\'''\'' -LLL '\''(objectclass=zimbraAccount)'\'' zimbraMailDeliveryAddress Could not parse LDAP URI(s)=127.0.0.1 (3)' + echo 'ERROR - Can'\''t extract accounts from LDAP - See log for more information'
Author
Owner

@rodrigomeneguet commented on GitHub (May 28, 2018):

@diterdepaula amigo eu utilizei neste formato:

LDAPSERVER=ldap://127.0.0.1:389

Lembrando que o 127,0,0,1 deve ser substituído pelo ip da interface, foi assim que funcionou para mim.

<!-- gh-comment-id:392498038 --> @rodrigomeneguet commented on GitHub (May 28, 2018): @diterdepaula amigo eu utilizei neste formato: LDAPSERVER=ldap://127.0.0.1:389 Lembrando que o 127,0,0,1 deve ser substituído pelo ip da interface, foi assim que funcionou para mim.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/zmbackup#74
No description provided.