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

Issues with AWS Authorization header

Open gmaxwell94 opened this issue 5 years ago • 1 comments

AM trying to up put a ldap front end to AWS Kibana, Have the proxy working, have the ldap working but when used together, get warning.

{"message":" Authorization header requires 'Credential' parameter. Authorization header requires 'Signature' parameter. Authorization header requires 'SignedHeaders' parameter. Authorization header requires existence of either a 'X-Amz-Date' or a 'Date' header. Authorization=Basic Z21heHdlbGxAbW9iaWxlaXJvbi5jb206cGFzc3dvcmQ="}

The fix for amazon in Nginx is to set proxy_set_header Authorization "";

which of course breaks the ldap auth.

Is there some way to change the name of the Authorization head as it gets sent to Amazon in either the ldap header WWW-Authenticate- line 1779 r->headers_out.www_authenticate->key.data = (u_char *) "WWW-Authenticate"; or in Nginx config. Thanks in advance for the help. Really surprised that this set up does not already exists.

gmaxwell94 avatar Apr 29 '19 16:04 gmaxwell94

Did you ever manage to resolve this, @gmaxwell94 ? Having the same issue.

Harrtron avatar Nov 18 '19 13:11 Harrtron