mirror of
https://github.com/rubenhensen/k8scd.git
synced 2026-09-17 02:12:55 +02:00
Connect Stalwart to Authentik LDAP for user authentication
- Add LDAP directory backend in Stalwart pointing to ldap.rubenhensen.nl - Expose Authentik LDAP outpost externally via LoadBalancer service - Add ldap.rubenhensen.nl DNS record
This commit is contained in:
@@ -91,7 +91,7 @@
|
||||
fts = "rocksdb";
|
||||
blob = "rocksdb";
|
||||
lookup = "rocksdb";
|
||||
directory = "internal";
|
||||
directory = "authentik";
|
||||
};
|
||||
|
||||
store.rocksdb = {
|
||||
@@ -112,6 +112,28 @@
|
||||
enable = true;
|
||||
};
|
||||
|
||||
directory.authentik = {
|
||||
type = "ldap";
|
||||
url = "ldap://ldap.rubenhensen.nl:389";
|
||||
timeout = "30s";
|
||||
tls.enable = false;
|
||||
base-dn = "DC=ldap,DC=goauthentik,DC=io";
|
||||
|
||||
bind.auth.method = "lookup";
|
||||
|
||||
filter = {
|
||||
name = "(&(objectClass=user)(cn=?))";
|
||||
email = "(&(objectClass=user)(|(mail=?)(mailAlias=?)))";
|
||||
};
|
||||
|
||||
attributes = {
|
||||
name = "cn";
|
||||
class = "objectClass";
|
||||
email = "mail";
|
||||
groups = "memberOf";
|
||||
};
|
||||
};
|
||||
|
||||
authentication.fallback-admin = {
|
||||
user = "admin";
|
||||
secret = "%{file:/run/credentials/stalwart-mail.service/stalwart-admin-password}%";
|
||||
|
||||
Reference in New Issue
Block a user