grafana/pkg/models
gotjosh 0cbbb43222
LDAP: Add API endpoint to debug user mapping from LDAP (#18833)
* Move the ReloadLDAPCfg function to the debug file

Appears to be a better suite place for this.

* LDAP: Return the server information when we find a specific user

We allow you to specify multiple LDAP servers as part of LDAP authentication integration. As part of searching for specific users, we need to understand from which server they come from. Returning the server configuration as part of the search will help us do two things:

- Understand in which server we found the user
- Have access the groups specified as part of the server configuration

* LDAP: Adds the /api/admin/ldap/:username endpoint

This endpoint returns a user found within the configured LDAP server(s). Moreso, it provides the mapping information for the user to help administrators understand how the users would be created within Grafana based on the current configuration.

No changes are executed or saved to the database, this is all an in-memory representation of how the final result would look like.
2019-09-03 18:34:44 +01:00
..
address.go
alert.go Alerting: Add tags to alert rules (#10989) 2019-06-06 13:29:30 +02:00
alert_notifications.go Chore: a bit of spring cleaning (#16710) 2019-04-23 11:24:47 +03:00
alert_test.go Alerting: Add tags to alert rules (#10989) 2019-06-06 13:29:30 +02:00
apikey.go Auth: Duplicate API Key Name Handle With Useful HTTP Code (#17905) 2019-07-11 11:20:34 +03:00
context.go move log package to /infra (#17023) 2019-05-13 08:45:54 +02:00
dashboard_acl.go Chore: a bit of spring cleaning (#16710) 2019-04-23 11:24:47 +03:00
dashboard_acl_test.go
dashboard_snapshot.go
dashboard_version.go build: upgrades to golang 1.12.4 (#16545) 2019-04-15 09:18:28 +02:00
dashboards.go Provisioning: Show file path of provisioning file in save/delete dialogs (#16706) 2019-04-30 13:32:18 +02:00
dashboards_test.go
datasource.go Usage Stats: Update known datasource plugins (#17787) 2019-06-26 21:15:45 +02:00
datasource_cache.go http: remove dualstack since its deprecated (#16940) 2019-05-08 10:37:48 +02:00
datasource_cache_test.go Build: use golangci-lint as a make command (#17739) 2019-07-02 16:06:59 +03:00
folders.go API: Restrict anonymous user information access (#18422) 2019-08-12 20:03:48 +02:00
health.go
helpflags.go
home_dashboard.go
login_attempt.go
models.go
notifications.go Email: add reply-to and direct attachment (#18715) 2019-08-26 16:44:18 +02:00
org.go LDAP: Add API endpoint to debug user mapping from LDAP (#18833) 2019-09-03 18:34:44 +01:00
org_user.go Fixed gofmt issue in PR #16093 2019-03-20 10:58:20 +01:00
playlist.go
plugin_settings.go
preferences.go
quotas.go
saml.go Auth: SAML login button. (#17932) 2019-07-05 15:24:52 +02:00
search.go
star.go
stats.go metrics: expose stats about roles as metrics (#17469) 2019-06-06 16:39:35 +02:00
streams.go
tags.go
tags_test.go
team.go API: Restrict anonymous user information access (#18422) 2019-08-12 20:03:48 +02:00
team_member.go Teams: show proper label for each auth provider (#17860) 2019-07-03 16:52:10 +03:00
temp_user.go
test_data.go
user.go API: Minor fix for team creation endpoint when using API key (#18252) 2019-08-08 11:27:47 +03:00
user_auth.go Users: Disable users removed from LDAP (#16820) 2019-05-21 14:52:49 +03:00
user_token.go Auth: Enable retries and transaction for some db calls for auth tokens (#16785) 2019-04-30 14:42:01 +02:00