ldap: Make it possible to define Grafana admins via ldap setup, closes #2469

This commit is contained in:
Torkel Ödegaard
2018-07-16 16:56:42 +02:00
parent f0508aa526
commit c189262bac
7 changed files with 77 additions and 24 deletions
+9 -8
View File
@@ -13,14 +13,15 @@ type UserAuth struct {
}
type ExternalUserInfo struct {
AuthModule string
AuthId string
UserId int64
Email string
Login string
Name string
Groups []string
OrgRoles map[int64]RoleType
AuthModule string
AuthId string
UserId int64
Email string
Login string
Name string
Groups []string
OrgRoles map[int64]RoleType
IsGrafanaAdmin *bool // This is a pointer to know if we should sync this or not (nil = ignore sync)
}
// ---------------------