From 0ae1597ecda9557f471c1dcf6c263fc5b7dea042 Mon Sep 17 00:00:00 2001 From: arcoast <81871508+arcoast@users.noreply.github.com> Date: Sun, 22 Jan 2023 08:49:00 +0000 Subject: [PATCH] example_configs: Add Wikijs example In response to https://github.com/nitnelave/lldap/pull/424#discussion_r1083280235 --- README.md | 1 + example_configs/wikijs.md | 64 +++++++++++++++++++++++++++++++++++++++ 2 files changed, 65 insertions(+) create mode 100644 example_configs/wikijs.md diff --git a/README.md b/README.md index 9173f52..89c1279 100644 --- a/README.md +++ b/README.md @@ -250,6 +250,7 @@ folder for help with: - [Vaultwarden](example_configs/vaultwarden.md) - [WeKan](example_configs/wekan.md) - [WG Portal](example_configs/wg_portal.env.example) + - [WikiJS](example_configs/wikijs.md) - [XBackBone](example_configs/xbackbone_config.php) - [Zendto](example_configs/zendto.md) diff --git a/example_configs/wikijs.md b/example_configs/wikijs.md new file mode 100644 index 0000000..07827e5 --- /dev/null +++ b/example_configs/wikijs.md @@ -0,0 +1,64 @@ +# Configuration for WikiJS +Replace `dc=example,dc=com` with your LLDAP configured domain. +### LDAP URL +``` +ldap://lldap:3890 +``` +### Admin Bind DN +``` +uid=admin,ou=people,dc=example,dc=com +``` +or +``` +uid=readonlyuser,ou=people,dc=example,dc=com +``` +### Admin Bind Credentials +``` +ADMINPASSWORD +``` +or +``` +READONLYUSERPASSWORD +``` +### Search Base +``` +ou=people,dc=example,dc=com +``` +### Search Filter +If you wish the permitted users to be restricted to just the `wiki` group: +``` +(&(memberof=cn=wiki,ou=groups,dc=example,dc=com)(|(uid={{username}})(mail={{username}))(objectClass=person)) +``` +If you wish any of the registered LLDAP users to be permitted to use WikiJS: +``` +(&(|(uid={{username}})(mail={{username}))(objectClass=person)) +``` +### Use TLS +Left toggled off +### Verify TLS Certificate +Left toggled off +### TLS Certificate Path +Left blank +### Unique ID Field Mapping +``` +uid +``` +### Email Field Mapping +``` +mail +``` +### Display Name Field Mapping +``` +givenname +``` +### Avatar Picture Field Mapping +``` +jpegPhoto +``` +### Allow self-registration +Toggled on +### Limit to specific email domains +Left blank +### Assign to group +I created a group called `users` and assign my LDAP users to that by default. +You can use the local admin account to login and promote an LDAP user to `admin` group if you wish and then deactivate the local login option