diff options
author | Sebastian Jackel <sjackel@trustinternational.com> | 2014-05-15 14:21:27 +0200 |
---|---|---|
committer | Sebastian Jackel <sjackel@trustinternational.com> | 2014-05-15 14:27:16 +0200 |
commit | eb264a112b378d1ebdf8e1de076797dd56a0e6b8 (patch) | |
tree | e8b6da2aa0062522503d322dcfc0e2f1472cb553 /modules/base | |
parent | f5b2e5f836b42946e4221cb7db49e04d40024ba6 (diff) | |
download | gitea-eb264a112b378d1ebdf8e1de076797dd56a0e6b8.tar.gz gitea-eb264a112b378d1ebdf8e1de076797dd56a0e6b8.zip |
Add LDAP over SSL support
Diffstat (limited to 'modules/base')
-rw-r--r-- | modules/base/conf.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/base/conf.go b/modules/base/conf.go index 99bac9006f..7d26623a52 100644 --- a/modules/base/conf.go +++ b/modules/base/conf.go @@ -195,11 +195,12 @@ func newLdapService() { ldapname := Cfg.MustValue(v, "name", v) ldaphost := Cfg.MustValue(v, "host") ldapport := Cfg.MustInt(v, "port", 389) + ldapusessl := Cfg.MustBool(v, "usessl", false) ldapbasedn := Cfg.MustValue(v, "basedn", "dc=*,dc=*") ldapattribute := Cfg.MustValue(v, "attribute", "mail") ldapfilter := Cfg.MustValue(v, "filter", "(*)") ldapmsadsaformat := Cfg.MustValue(v, "MSADSAFORMAT", "%s") - ldap.AddSource(ldapname, ldaphost, ldapport, ldapbasedn, ldapattribute, ldapfilter, ldapmsadsaformat) + ldap.AddSource(ldapname, ldaphost, ldapport, ldapusessl, ldapbasedn, ldapattribute, ldapfilter, ldapmsadsaformat) nbsrc++ log.Debug("%s added as LDAP source", ldapname) } |