LDAP: Add skip_org_role_sync configuration option (#56679)
* LDAP: Add skip_org_role_sync option * Document the new config option * Nit on docs * Update docs/sources/setup-grafana/configure-security/configure-authentication/ldap.md Co-authored-by: Christopher Moyer <35463610+chri2547@users.noreply.github.com> * Docs suggestions Co-authored-by: Christopher Moyer <35463610+chri2547@users.noreply.github.com> Co-authored-by: Jguer <joao.guerreiro@grafana.com> * Add test, Fix disabled user when no role Co-authored-by: Christopher Moyer <35463610+chri2547@users.noreply.github.com> Co-authored-by: Jguer <joao.guerreiro@grafana.com>
This commit is contained in:
co-authored by
Christopher Moyer
Jguer
parent
72b9555487
commit
10c080dad1
@@ -76,6 +76,10 @@ func IsEnabled() bool {
|
||||
return setting.LDAPEnabled
|
||||
}
|
||||
|
||||
func SkipOrgRoleSync() bool {
|
||||
return setting.LDAPSkipOrgRoleSync
|
||||
}
|
||||
|
||||
// ReloadConfig reads the config from the disk and caches it.
|
||||
func ReloadConfig() error {
|
||||
if !IsEnabled() {
|
||||
|
||||
Reference in New Issue
Block a user