Some times, we come here when we are waiting for a group check. The problem is that replied == 1 after previous user check and we fall to the phase loop instead of wait for the answer from LDAP server.
Obviously, we have no answer from LDAP yet, and group check fails.
Nginx is calling ngx_http_auth_ldap_authenticate and
we have to answer "The LDAP operation did not finish yet" and NGX_AGAIN, but falling down to the loop
Some times, we come here when we are waiting for a group check. The problem is that replied == 1 after previous user check and we fall to the phase loop instead of wait for the answer from LDAP server. Obviously, we have no answer from LDAP yet, and group check fails.
Nginx is calling ngx_http_auth_ldap_authenticate and we have to answer "The LDAP operation did not finish yet" and NGX_AGAIN, but falling down to the loop
Check fails because there is no search result (ctx->dn.data == NULL)
We'll recieve the answer, but it will be too late: