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))"