nuxsmin / sysPass

Systems Password Manager
https://syspass.org
GNU General Public License v3.0
972 stars 206 forks source link

Problem With login Openldap Server (zimbra) #1555

Open rafaeldomingos opened 4 years ago

rafaeldomingos commented 4 years ago

sysPass Version 3.1 Describe the bug Good afternoon. I am trying to use syspass with Zimbra's ldap .. But I can't get it to work. After changing the Bindpass path directly in the file: lib / SP / Providers / Auth / Ldap / LdapConnection.php I can even list via WEBGUI but login does not work.

To Reproduce Loguin Expected behavior A clear and concise description of what you expected to happen.

Event log S==> /var/log/httpd/error_log <== ldap_url_parse_ext(ldap://localhost/) ldap_init: trying /etc/openldap/ldap.conf ldap_init: using /etc/openldap/ldap.conf ldap_url_parse_ext(ldap://meuldap.com.br:) ldap_init: HOME env is NULL ldap_init: LDAPCONF env is NULL ldap_init: LDAPRC env is NULL ldap_create ldap_url_parse_ext(ldap://meuldap.com.br:) ldap_sasl_bind_s ldap_sasl_bind ldap_send_initial_request ldap_new_connection 1 1 0 ldap_int_open_connection ldap_connect_to_host: TCP meuldap.com.br:389 ldap_new_socket: 18 ldap_prepare_socket: 18 ldap_connect_to_host: Trying 198.50.198.74:389 ldap_pvt_connect: fd: 18 tm: 10 async: 0 ldap_ndelay_on: 18 attempting to connect: connect errno: 115 ldap_int_poll: fd: 18 tm: 10 ldap_is_sock_ready: 18 ldap_ndelay_off: 18 ldap_pvt_connect: 0 ldap_open_defconn: successful ldap_send_server_request ldap_result ld 0x55edbafcbe90 msgid 1 wait4msg ld 0x55edbafcbe90 msgid 1 (infinite timeout) wait4msg continue ld 0x55edbafcbe90 msgid 1 all 1 ** ld 0x55edbafcbe90 Connections:

** ld 0x55edbafcbe90 Outstanding Requests:

** ld 0x55edbafcbe90 Outstanding Requests:

Platform (please complete the following information):

rafaeldomingos commented 4 years ago

file: "lib/SP/Providers/Auth/Ldap/LdapConnection.php" Line altered: 271 from: $pass = $bindPass ?: $this->ldapParams->getBindPass(); to: $passldap = "MyBindSecret";