Auth Proxy: replace ini setting ldap_sync_ttl with sync_ttl (#20191)

* Renamed ttl config in code to be more consistent with behaviour
* Introduced new setting `sync_ttl` in .ini file
* Keeping the old setting `ldap_sync_ttl` in the .ini file as fallback and compatibility.
This commit is contained in:
Jon Gyllenswärd
2019-11-07 11:24:54 +01:00
committed by GitHub
parent 0a7fcb1a37
commit 53f8088316
4 changed files with 58 additions and 3 deletions
+1 -1
View File
@@ -92,7 +92,7 @@ func New(options *Options) *AuthProxy {
headerType: setting.AuthProxyHeaderProperty,
headers: setting.AuthProxyHeaders,
whitelistIP: setting.AuthProxyWhitelist,
cacheTTL: setting.AuthProxyLDAPSyncTtl,
cacheTTL: setting.AuthProxySyncTtl,
LDAPAllowSignup: setting.LDAPAllowSignup,
AuthProxyAutoSignUp: setting.AuthProxyAutoSignUp,
}