cleanup, make sure users are always synced with ldap

This commit is contained in:
Dan Cech
2018-04-17 17:48:56 -04:00
parent 33760b5c3b
commit 3fedcb1e4b
2 changed files with 3 additions and 6 deletions
+2
View File
@@ -65,6 +65,8 @@ func initContextWithAuthProxy(ctx *m.ReqContext, orgID int64) bool {
query.UserId = getRequestUserId(ctx)
// if we're using ldap, pass authproxy login name to ldap user sync
} else if setting.LdapEnabled {
ctx.Session.Delete(session.SESS_KEY_LASTLDAPSYNC)
syncQuery := &m.LoginUserQuery{
ReqContext: ctx,
Username: proxyHeaderValue,