Update README, example config

This commit is contained in:
Xiretza 2024-02-10 21:46:44 +00:00
parent f446d67cf4
commit 011ee55fc0
2 changed files with 8 additions and 1 deletions

View file

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

View file

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