From 011ee55fc00e6a239e4c3856d4dee64edf2ed90c Mon Sep 17 00:00:00 2001 From: Xiretza Date: Sat, 10 Feb 2024 21:46:44 +0000 Subject: [PATCH] Update README, example config --- README.md | 3 ++- config.toml.example | 6 ++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 1870a54..a6bae98 100644 --- a/README.md +++ b/README.md @@ -23,10 +23,11 @@ these custom users are properly authenticated. - `user_server_key` generation (`POST /generate-user-server-key-2`) - [user token generation](https://wiki.factorio.com/Web_authentication_API) and storage (`POST /api-login`), without any actual authentication + - LDAP auth backend ### Planned -- auth backends: LDAP, user file, PAM(?) +- more auth backends: user file, PAM(?) - server padlock proxying (to allow e.g. factorio.com users to join servers using a custom auth server) diff --git a/config.toml.example b/config.toml.example index 533c30d..e172d3e 100644 --- a/config.toml.example +++ b/config.toml.example @@ -3,3 +3,9 @@ port = 80 [database] connection-string = "sqlite://sqlite.db" + +[[auth-backends]] +type = "LDAP" +server-address = "ldap://ldap.example.com" +search-base = "ou=users,dc=example,dc=com" +user-filter = "(|(uid=%s)(mail=%s))"