Skip to content

Commit

Permalink
Enable authad plugin and update ldap_domain_list in Settings.vue
Browse files Browse the repository at this point in the history
  • Loading branch information
stephdl committed Mar 18, 2024
1 parent 01867a6 commit d34f7cd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 1 addition & 2 deletions imageroot/bin/write-ldap-conf
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,8 @@ cat <<EOF > dokuwiki-config/plugins.local.php
* Auto-generated by install s
*/
\$plugins['authad'] = 0;
\$plugins['authad'] = 1;
\$plugins['authldap'] = 1;
\$plugins['authad'] = 1;
\$plugins['authmysql'] = 0;
\$plugins['authpgsql'] = 0;
EOF
Expand Down
4 changes: 3 additions & 1 deletion ui/src/views/Settings.vue
Original file line number Diff line number Diff line change
Expand Up @@ -311,13 +311,15 @@ export default {
this.host = config.host;
this.isLetsEncryptEnabled = config.lets_encrypt;
this.isHttpToHttpsEnabled = config.http2https;
// for NSComboBox we need to create a temporary variable
let ldap_domain_list_tmp = config.ldap_domain_list;
ldap_domain_list_tmp = ldap_domain_list_tmp.unshift({
ldap_domain_list_tmp.unshift({
name: "no_user_domain",
label: this.$t("settings.internal_authentication"),
value: "-",
});
this.ldap_domain_list = ldap_domain_list_tmp;
// force to reload value after dom update
this.$nextTick(() => {
this.ldap_domain = config.ldap_domain;
Expand Down

0 comments on commit d34f7cd

Please sign in to comment.