From 7637faf04772ac39ed1d5bae8a6ce6cd6542b91f Mon Sep 17 00:00:00 2001 From: SeanOMik Date: Sun, 28 May 2023 23:48:03 -0400 Subject: [PATCH] update config example --- config-example.toml | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/config-example.toml b/config-example.toml index fb6e0cd..06335b0 100644 --- a/config-example.toml +++ b/config-example.toml @@ -1,3 +1,17 @@ listen_address = "127.0.0.1" listen_port = "3000" -url = "http://localhost:3000/" \ No newline at end of file +url = "http://localhost:3000/" + +[ldap] +connection_url = "ldap://localhost:389" +bind_dn = "cn=admin,dc=planetexpress,dc=com" +bind_password = "GoodNewsEveryone" +user_base_dn = "ou=people,dc=planetexpress,dc=com" +group_base_dn = "ou=people,dc=planetexpress,dc=com" + +user_search_filter = "(&(objectClass=person)(mail=%s))" +group_search_filter = "(&(objectclass=groupOfNames)(member=%d))" + +admin_filter = "(memberOf=cn=admin_staff,ou=people,dc=planetexpress,dc=com)" +#login_attribute = "mail" +#display_name_attribute = "displayName" \ No newline at end of file