File tree Expand file tree Collapse file tree 3 files changed +54
-2
lines changed Expand file tree Collapse file tree 3 files changed +54
-2
lines changed Original file line number Diff line number Diff line change @@ -42,7 +42,24 @@ bookstack_smtp_username: "null"
42
42
bookstack_smtp_password : " null"
43
43
bookstack_smtp_encryption : " null"
44
44
` ` `
45
-
45
+ Information about your LDAP.
46
+ ` ` ` yml
47
+ bookstack_use_ldap_auth : false
48
+ bookstack_ldap_server : " ldaps://example.com:636"
49
+ bookstack_ldap_base_dn : " People,dc=example,dc=com"
50
+ bookstack_ldap_bind_dn : " false"
51
+ bookstack_ldap_bind_pw : " false"
52
+ bookstack_ldap_user_filter : " (&(uid=${user}))"
53
+ bookstack_ldap_version : " 3"
54
+ bookstack_ldap_id_attribute : " uid"
55
+ bookstack_ldap_mail_attribute : " mail"
56
+ bookstack_ldap_dn_attribute : " cn"
57
+ bookstack_ldap_tls_force : " false"
58
+ ` ` `
59
+ Default locale
60
+ ` ` ` yml
61
+ bookstack_lang : en
62
+ ` ` `
46
63
## Examples
47
64
` ` ` yml
48
65
- hosts : all
Original file line number Diff line number Diff line change @@ -9,6 +9,8 @@ bookstack_git_url: https://github.com/BookStackApp/BookStack.git
9
9
# ###########
10
10
# ENV FILE
11
11
# ###########
12
+ bookstack_lang : en
13
+
12
14
bookstack_host : localhost
13
15
bookstack_db_name : bookstackdb
14
16
bookstack_db_user : bookstackuser
@@ -23,3 +25,15 @@ bookstack_smtp_port: "1025"
23
25
bookstack_smtp_username : " null"
24
26
bookstack_smtp_password : " null"
25
27
bookstack_smtp_encryption : " null"
28
+
29
+ bookstack_use_ldap_auth : false
30
+ bookstack_ldap_server : " ldaps://example.com:636"
31
+ bookstack_ldap_base_dn : " People,dc=example,dc=com"
32
+ bookstack_ldap_bind_dn : " false"
33
+ bookstack_ldap_bind_pw : " false"
34
+ bookstack_ldap_user_filter : " (&(uid=${user}))"
35
+ bookstack_ldap_version : " 3"
36
+ bookstack_ldap_id_attribute : " uid"
37
+ bookstack_ldap_mail_attribute : " mail"
38
+ bookstack_ldap_dn_attribute : " cn"
39
+ bookstack_ldap_tls_force : " false"
Original file line number Diff line number Diff line change 2
2
# Used for encryption where needed.
3
3
# Run `php artisan key:generate` to generate a valid key.
4
4
APP_KEY=SomeKey
5
+ APP_LANG={{ bookstack_lang }}
5
6
6
7
# Application URL
7
8
# Remove the hash below and set a URL if using BookStack behind
@@ -31,5 +32,25 @@ MAIL_USERNAME={{ bookstack_smtp_username }}
31
32
MAIL_PASSWORD={{ bookstack_smtp_password }}
32
33
MAIL_ENCRYPTION={{ bookstack_smtp_encryption }}
33
34
35
+ {% if bookstack_use_ldap_auth is true %}
36
+ AUTH_METHOD=ldap
37
+ LDAP_SERVER={{ bookstack_ldap_server }}
38
+ LDAP_BASE_DN=ou={{ bookstack_ldap_base_dn }}
39
+ LDAP_DN={{ bookstack_ldap_bind_dn }}
40
+ LDAP_PASS=false{{ bookstack_ldap_bind_pw }}
34
41
35
- # A full list of options can be found in the '.env.example.complete' file.
42
+ LDAP_USER_FILTER={{ bookstack_ldap_user_filter }}
43
+ LDAP_VERSION={{ bookstack_ldap_version }}
44
+
45
+ LDAP_ID_ATTRIBUTE={{ bookstack_ldap_id_attribute }}
46
+ LDAP_EMAIL_ATTRIBUTE={{ bookstack_ldap_mail_attribute }}
47
+
48
+ # Set the property to use for a user's display name. Defaults to 'cn'
49
+ LDAP_DISPLAY_NAME_ATTRIBUTE={{ bookstack_ldap_dn_attribute }}
50
+
51
+ # Force TLS to be used for LDAP communication.
52
+ # Use this if you can but your LDAP support will need to support it and
53
+ # you may need to import your certificate to the BookStack host machine.
54
+ # Defaults to 'false'.
55
+ LDAP_START_TLS={{ bookstack_ldap_tls_force }}
56
+ {% endif %}
You can’t perform that action at this time.
0 commit comments