Skip to content

Instantly share code, notes, and snippets.

@eby
Last active August 29, 2015 13:57
Show Gist options
  • Select an option

  • Save eby/9368610 to your computer and use it in GitHub Desktop.

Select an option

Save eby/9368610 to your computer and use it in GitHub Desktop.
nginx auth_pam and satisfy any

Ran into the same issue as kvspb/nginx-auth-ldap#7 but with auth_pam instead of auth_ldap (using pam for ldap auth though)

  • auth_pam will prompt if on it's own
  • auth_pam will not prompt if satisfy any and IP limits

Used the solution to issue 7 and added a blank basic auth file. IP and PAM work.

            satisfy any;
            allow 192.168.100.0/24;
            deny all;  
            auth_pam "Login Required";
            auth_pam_service_name "nginx";
            auth_basic "Login Required";
            auth_basic_user_file /etc/nginx/empty;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment