Authenticate against Active Directory

1. My Caddy version (caddy -version):

Caddy v1.0.3

2. How I run Caddy:

I am new to Caddy and trying to experiment with to serve static html and using Jquery for table filtering.

a. System environment:

$ lsb_release -a
Distributor ID: Ubuntu
Description: Ubuntu 18.04.3 LTS
Release: 18.04
Codename: bionic

d. My complete Caddyfile:

Simple Caddyfile:

$ cat /etc/caddy/Caddyfile

:80 {
    root /var/www/
    gzip {
        ext .html .htm
        level 6
    }
}

3. The problem I’m having:

I am looking for option to authenticate against Active directory before showing static HTML page.

Does any one have working server with AD authentication? Any pointer about how the Caddyfile looks like for AD integration will be great help.

Hi @l.mohanphy, welcome to the Caddy community.

I don’t think there’s any publicly published Caddy plugin that can authenticate against an AD backend.

The closest plugin would be http.login, which supports a few backends including some OAuth providers, and is designed to issue JSON web tokens to work with the http.jwt plugin which will deny access for unauthenticated users.

https://caddyserver.com/docs/http.login
https://caddyserver.com/docs/http.jwt

You could look at contacting the author of the http.login plugin with an aim to extend that plugin to support AD backends, or you might consider writing your own plugin.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.