Skip to content

voegelas/nginx-auth-saslauthd

Folders and files

NameName
Last commit message
Last commit date

Latest commit

0c4c177 · Jun 10, 2024
Jun 10, 2024
Aug 2, 2023
Feb 1, 2022
Jan 27, 2022
Feb 6, 2023
Nov 5, 2017
Apr 24, 2023
Jan 20, 2021
Aug 17, 2022
Feb 1, 2022
Aug 2, 2023
Feb 1, 2022
Feb 1, 2022
Nov 7, 2022
Aug 2, 2023
Jan 27, 2022

Repository files navigation

nginx-auth-saslauthd

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";
}

DEPENDENCIES

This program requires Mojolicious 7.27 or later and the saslauthd daemon from Cyrus SASL.

INSTALLATION

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

LICENSE AND COPYRIGHT

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.