stnoonan / spnego-http-auth-nginx-module

SPNEGO HTTP Authentication Module for nginx
Other
276 stars 112 forks source link

Add Windows/AD and UNIX commands and configuration to generate and use Keytabs with nginx #91

Open vjt opened 5 years ago

vjt commented 5 years ago

Dear @stnoonan -

first, thanks for your work on this nginx module, that has proven very robust and reliable in the last 5 years it has been in production for us.

This pull is for discussion only, as it contains only README changes on how to obtain a Windows service account mapped to specific service names that are not dependant on the system's host name where nginx is running.

The scenario here is that you may have multiple boxes with nginx on them serving the same app, say, "foo.example.com", behind a load balancer. The nginx servers need to have a keytab that has both the host/foo.example.com and HTTP/foo.example.com, and on the AD side the service account used for Kerberos authentication need to have these two SPNs mapped to it, in the very same "host/" first and "HTTP/" after order.

It is also possible to have different service names mapped to the same service account, as long as the host/ and HTTP/ entries in the Windows SPN database are in the right order.

The documentation in this pull shows all the steps required to achieve the above, that allow for great flexibility and that has been tested with AD on Windows Server 2008, 2012, 2016 and with both IE 11 and Chrome on Windows 7 and Windows 10.

Thanks for your time,