This nginx utility verifies web users with Basic authentication and LDAP, PAM or other mechanisms supported by the saslauthd daemon from Cyrus SASL. Authentication requests are forwarded from nginx with the auth_request directive.
location /private/ {
auth_request /auth;
}
location = /auth {
internal;
proxy_pass http://unix:/run/nginx-auth/saslauthd.sock:/auth-basic;
proxy_pass_request_body off;
proxy_set_header Content-Length "";
proxy_set_header X-Realm "Restricted";
}
This program requires Mojolicious 7.27 or later and the saslauthd daemon from Cyrus SASL.
Run the following commands to install the software:
perl Makefile.PL
make
make test
make install
Type the following command to see the program usage information:
man nginx-auth-saslauthd
Copyright (C) 2017-2023 Andreas Vögele
This program is free software; you can redistribute and modify it under the terms of the ISC license.