Open leonidra opened 9 years ago
do you have make it with up question? I have the same question, please give me some sugessions
You didn't post your configs, but I'm willing to guess that you're missing a few semi-colons at the end of your lines. I was able to recreate this issue with a missing semicolon in my ldap_server config block.
This model fails in all sorts of random, spectacular ways if you're missing semicolons at the end of each line of your config.
This line in ngx_http_auth_ldap_connect()
may divide by zero:
addr = &c->server->parsed_url.addrs[ngx_random() % c->server->parsed_url.naddrs];
still experiencing same issue has anyone ever solved this?
% nginx -v nginx version: nginx/1.20.1
2021/07/06 06:02:35 [error] 454658#0: http_auth_ldap: ldap_result() failed (-1: Can't contact LDAP server) 2021/07/06 06:02:35 [error] 454648#0: http_auth_ldap: ldap_result() failed (-1: Can't contact LDAP server) 2021/07/06 06:02:35 [error] 454658#0: http_auth_ldap: LDAP_SERVER_DOWN: retry count: 1 2021/07/06 06:02:35 [error] 454648#0: http_auth_ldap: LDAP_SERVER_DOWN: retry count: 1 2021/07/06 06:02:35 [error] 454659#0: http_auth_ldap: ldap_result() failed (-1: Can't contact LDAP server) 2021/07/06 06:02:35 [error] 454659#0: http_auth_ldap: LDAP_SERVER_DOWN: retry count: 1 2021/07/06 06:02:35 [error] 454656#0: http_auth_ldap: ldap_result() failed (-1: Can't contact LDAP server) 2021/07/06 06:02:35 [error] 454656#0: http_auth_ldap: LDAP_SERVER_DOWN: retry count: 1 2021/07/06 06:02:35 [alert] 453901#0: worker process 454659 exited on signal 8 (core dumped) 2021/07/06 06:02:35 [alert] 453901#0: worker process 454658 exited on signal 8 (core dumped) 2021/07/06 06:02:35 [alert] 453901#0: worker process 454656 exited on signal 8 (core dumped) 2021/07/06 06:02:35 [alert] 453901#0: worker process 454648 exited on signal 8 (core dumped)
HI,
After installing nginx 1.6.2 with nginx-auth-ldap module, nginx fails to work spitting hundreds of messages to the log flle.
Configure flags:
configure arguments: --add-module=/root/nginx-auth-ldap-master --with-http_ssl_module
Dmesg:
Nginx error log:
Configuring without ldap-module works as expected. Problem happens on ubuntu-14