概要

フル名
docker.io/timelesclock/nginx-ldap-auth
Registry
docker.io
名前空間
timelesclock
リポジトリ
nginx-ldap-auth
キャッシュ Tag 数
3
最終同期
07/05/2026, 08:36 AM

概要

Nginx LDAP 认证代理镜像,LDAP/Active Directory 统一认证反向代理,内网 Web 应用 SSO 前置网关。

詳細

timelesclock/nginx-ldap-auth 运行集成 LDAP 认证的 Nginx 反向代理,对后端 Web 应用提供 Active Directory/LDAP 统一登录。定位为 LDAP 认证反向代理,需 LDAP 服务器地址;内网应用 SSO 前置、Active Directory 统一认证或替代 OAuth 的 LDAP Basic Auth 网关。

快速启动

docker run -d --name nginx-ldap-auth \
  -p 8080:80 \
  -e LDAP_SERVER=ldap://ad.example.com \
  -e LDAP_BASEDN=dc=example,dc=com \
  docker.io/timelesclock/nginx-ldap-auth:latest

推荐实践

docker run -d --name nginx-ldap-auth \
  --restart unless-stopped \
  -p 8080:80 \
  -e LDAP_SERVER=ldap://ad.example.com:389 \
  -e LDAP_BASEDN=dc=example,dc=com \
  -e LDAP_BINDDN=cn=proxy,dc=example,dc=com \
  -e LDAP_BINDPASS=changeme \
  docker.io/timelesclock/nginx-ldap-auth:latest

核心参数说明

  • -p 8080:80 — LDAP 认证代理端口
  • LDAP_SERVER — LDAP/AD 服务器地址
  • LDAP_BINDPASS — 代理绑定密码(高敏
  • 后端 — nginx.conf 配置 upstream

Kubernetes

apiVersion: apps/v1
kind: Deployment
metadata:
  name: nginx-ldap-auth
spec:
  replicas: 2
  selector:
    matchLabels:
      app: nginx-ldap-auth
  template:
    metadata:
      labels:
        app: nginx-ldap-auth
    spec:
      containers:
        - name: nginx
          image: docker.io/timelesclock/nginx-ldap-auth:latest
          ports:
            - containerPort: 80
          envFrom:
            - secretRef:
                name: ldap-auth-env
---
apiVersion: v1
kind: Service
metadata:
  name: nginx-ldap-auth
spec:
  selector:
    app: nginx-ldap-auth
  ports:
    - port: 80
      targetPort: 80

Secret 存 LDAP 凭据;Ingress 前置认证。

Tagアーキテクチャプッシュ日時サイズDigest同期期望操作
docker.io/timelesclock/nginx-ldap-auth
:latest
linux/amd64linux/arm64
2025/04/30 15:3535.9 MBsha256:f2e07c926bd1
docker.io/timelesclock/nginx-ldap-auth
:arm64
linux/arm64
2025/04/30 15:3536.6 MBsha256:342cb85bd847
docker.io/timelesclock/nginx-ldap-auth
:amd64
linux/amd64
2025/04/30 15:3435.9 MBsha256:f2e07c926bd1