feat: glauth: add lldap as a datastore

main
LeRoyce Pearson 2024-01-09 18:31:26 -07:00
parent 92d7f6b513
commit e32e78228e
1 changed files with 11 additions and 5 deletions

View File

@ -136,17 +136,23 @@
backends = [
{
datastore = "config";
baseDN = "dc=twins,dc=pearson";
baseDN = "dc=samsehu,dc=perli,dc=casa";
nameFormat = "uid";
groupFormat = "ou";
}
# TODO: package glauth sqlite plugin
# # TODO: package glauth sqlite plugin
# {
# datastore = "plugin";
# plugin = "sqlite.so";
# pluginhandler = "NewSqliteHandler";
# database = "/run/glauth/glauth.db";
# }
# For now, simply act as a proxy for lldap
{
datastore = "ldap";
servers = [ "127.0.0.1:3890" ];
}
];
api = {
enabled = true;
@ -161,7 +167,7 @@
passappsha256 = [ "8adb23d6e1bd7db026a5784ff84efcbd57e4d9aea0e0798b78740a3ee335282c" ];
capabilities = [
{ action = "search";
object = "ou=forgejo_user,dc=twins,dc=pearson"; }
object = "ou=forgejo_user,dc=samsehu,dc=perli,dc=casa"; }
];
}
{ name = "jellyfin_search";
@ -171,7 +177,7 @@
passappsha256 = [ "21fa12ba3e63cd4cb96f4009720d385f4d52461ae3ab70fac8dedaa6b7917ce9" ];
capabilities = [
{ action = "search";
object = "ou=jellyfin_user,dc=twins,dc=pearson"; }
object = "ou=jellyfin_user,dc=samsehu,dc=perli,dc=casa"; }
];
}
{ name = "nextcloud_system_user";
@ -181,7 +187,7 @@
passappsha256 = [ "0f11783cdf378aa867a2b590e422f8d645fd3d7fab52fb73bac3c62a64d91651" ];
capabilities = [
{ action = "search";
object = "ou=nextcloud_user,dc=twins,dc=pearson"; }
object = "ou=nextcloud_user,dc=samsehu,dc=perli,dc=casa"; }
];
}
{ name = "dex";