aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorJohannes Zellner <johannes@nebulon.de>2016-04-05 16:46:27 +0200
committerJohannes Zellner <johannes@nebulon.de>2016-04-05 16:47:14 +0200
commitb99589fcfd20954930ff05722e8308a1ca288e9b (patch)
tree08e9155afde8beb35217d6ef9a927bb4a0cf941c /src
parent2220fe1438d9d98dd76020bbf88ab778298b840a (diff)
downloadSurfer-b99589fcfd20954930ff05722e8308a1ca288e9b.tar.gz
Surfer-b99589fcfd20954930ff05722e8308a1ca288e9b.tar.zst
Surfer-b99589fcfd20954930ff05722e8308a1ca288e9b.zip
Support username and email login
This change is required for the username !== userId cloudron change
Diffstat (limited to 'src')
-rw-r--r--src/auth.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/auth.js b/src/auth.js
index 6117dc9..10de4b7 100644
--- a/src/auth.js
+++ b/src/auth.js
@@ -37,7 +37,7 @@ var opts = {
37 }, 37 },
38 base: LDAP_USERS_BASE_DN, 38 base: LDAP_USERS_BASE_DN,
39 search: { 39 search: {
40 filter: '(uid={{username}})', 40 filter: '(|(username={{username}})(mail={{username}}))',
41 attributes: ['displayname', 'username', 'mail', 'uid'], 41 attributes: ['displayname', 'username', 'mail', 'uid'],
42 scope: 'sub' 42 scope: 'sub'
43 }, 43 },