Welcome! Log In Create A New Profile

Advanced

auth_request and apache 2 with kerberos

Luca Manganelli
November 14, 2021 11:04AM
Hello,

I have this configuration:

- a docker with nginx
- an apache2 server with kerberos authentication configured.

nginx is the main http server (everyone in internet navigate into it). When
the user clicks on the "LOGIN" from the website, nginx should use the
apache2 as authentication since it connects to our Active Directory for
kerberos.

I have tried to use the auth_request directive, but the problem is that
when it goes to apache2, the dialog box requesting user/password never pop
ups and so it returns to nginix with 403 not authorized error.

(If I go directly to apache2 server, it popus the dialog box and I can
succeed with the authentication).

Nginx configuration is as follows:

location /login2/ {
auth_request /auth;
}

location = /auth {
internal;
proxy_pass http://apache2server/;
proxy_pass_request_body off;
}


What am I missing?

--





Comune di Trento 

via Belenzani, 19 - 38122 Trento | C.F e P. IVA:
00355870221

tel. +39 0461.884111 | www.comune.trento.it
http://www.comune.trento.it 


_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

auth_request and apache 2 with kerberos

Luca Manganelli November 14, 2021 11:04AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 187
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready