mirror of
https://github.com/wekan/wekan.git
synced 2025-12-16 23:40:13 +01:00
LDAP AD Simple Auth: Added settings for all Wekan Standalone (non-Sandstorm) platforms.
Thanks to xet7 !
This commit is contained in:
parent
c0d1ed714e
commit
fe40f35d6d
8 changed files with 243 additions and 45 deletions
|
|
@ -230,7 +230,7 @@ export default class LDAP {
|
|||
if (!this.options.BaseDN && !this.options.AD_Simple_Auth) throw new Error('BaseDN is not provided');
|
||||
|
||||
var userDn = "";
|
||||
if (this.options.AD_Simple_Auth === true) {
|
||||
if (this.options.AD_Simple_Auth === true || this.options.AD_Simple_Auth === 'true') {
|
||||
userDn = `${username}@${this.options.Default_Domain}`;
|
||||
} else {
|
||||
userDn = `${this.options.User_Authentication_Field}=${username},${this.options.BaseDN}`;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue