1
0
mirror of https://gitlab.crans.org/nounous/ghostream.git synced 2025-06-28 08:52:35 +02:00

Add aliases auth support if the authentication method is LDAP

This commit is contained in:
Yohann D'ANELLO
2020-12-06 13:36:24 +01:00
parent 849196b4cb
commit 0035c63c22
3 changed files with 18 additions and 4 deletions

View File

@ -42,8 +42,9 @@ func New() *Config {
Credentials: make(map[string]string),
},
LDAP: ldap.Options{
URI: "ldap://127.0.0.1:389",
UserDn: "cn=users,dc=example,dc=com",
Aliases: make(map[string]string),
URI: "ldap://127.0.0.1:389",
UserDn: "cn=users,dc=example,dc=com",
},
},
Forwarding: make(map[string][]string),