Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nexpie-grafana-theme
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Registry
Registry
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kornkitt Poolsup
nexpie-grafana-theme
Commits
3fedcb1e
Unverified
Commit
3fedcb1e
authored
Apr 17, 2018
by
Dan Cech
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cleanup, make sure users are always synced with ldap
parent
33760b5c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
6 deletions
+3
-6
pkg/login/ext_user.go
+1
-6
pkg/middleware/auth_proxy.go
+2
-0
No files found.
pkg/login/ext_user.go
View file @
3fedcb1e
...
...
@@ -68,12 +68,7 @@ func UpsertUser(cmd *m.UpsertUserCommand) error {
}
}
err
=
syncOrgRoles
(
cmd
.
Result
,
extUser
)
if
err
!=
nil
{
return
err
}
return
nil
return
syncOrgRoles
(
cmd
.
Result
,
extUser
)
}
func
createUser
(
extUser
*
m
.
ExternalUserInfo
)
(
*
m
.
User
,
error
)
{
...
...
pkg/middleware/auth_proxy.go
View file @
3fedcb1e
...
...
@@ -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
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment