Auth Proxy improvements - adds the option to use ldap groups for authorization in combination with an auth proxy - adds an option to limit where auth proxy requests come from by configure a list of ip's - fixes a security issue, session could be reused

This commit is contained in:
Seuf
2016-12-12 09:53:02 +01:00
parent ae27c17c68
commit 12a82bc0d4
3 changed files with 7 additions and 1 deletions
+1 -1
View File
@@ -17,7 +17,7 @@ func TestAuthProxyWithLdapEnabled(t *testing.T) {
setting.AuthProxyLdapSyncTtl = 60
servers := []*login.LdapServerConf{{Host: "127.0.0.1"}}
login.ldapCfg = login.LdapConfig{Servers: servers}
login.LdapCfg = login.LdapConfig{Servers: servers}
mockLdapAuther := mockLdapAuthenticator{}
login.NewLdapAuthenticator = func(server *login.LdapServerConf) login.ILdapAuther {