nginx-auth-ldap icon indicating copy to clipboard operation
nginx-auth-ldap copied to clipboard

add variable support for auth_ldap parameter

Open 532910 opened this issue 5 years ago • 0 comments

Please add support to use variable as a parameter for auth_ldap.

if ($ssl_client_verify = "SUCCESS"){
    set $auth "off";
}
if ($ssl_client_verify != "SUCCESS"){
    set $auth "Forbidden";
}

While this:

auth_basic_user_file passwd;
auth_basic $auth;  

works as expected, this:

auth_ldap_servers ldap_uid;
auth_ldap $auth;

always says: "The site says: “$auth”"

532910 avatar May 08 '20 01:05 532910