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 feat(organization): added update org address to http api and to org details settings view, closes #2672 2015-09-08 14:22:44 +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
alert.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_test.go WIP: Permission Type as string in permission query 2017-06-12 15:49:09 +02:00
dashboard_acl.go Chore: a bit of spring cleaning (#16710) 2019-04-23 11:24:47 +03:00
dashboard_snapshot.go snapshots: Move external snapshot creation to backend 2018-12-10 16:36:32 -05:00
dashboard_version.go build: upgrades to golang 1.12.4 (#16545) 2019-04-15 09:18:28 +02:00
dashboards_test.go alert: fixes broken link back to grafana 2018-03-27 20:26:51 +02:00
dashboards.go Provisioning: Show file path of provisioning file in save/delete dialogs (#16706) 2019-04-30 13:32:18 +02:00
datasource_cache_test.go Build: use golangci-lint as a make command (#17739) 2019-07-02 16:06:59 +03:00
datasource_cache.go http: remove dualstack since its deprecated (#16940) 2019-05-08 10:37:48 +02:00
datasource.go Usage Stats: Update known datasource plugins (#17787) 2019-06-26 21:15:45 +02:00
folders.go API: Restrict anonymous user information access (#18422) 2019-08-12 20:03:48 +02:00
health.go feat: added api health endpoint that does not require auth and never creates sessions, returns db status as well. #3302 2017-04-25 17:17:45 +02:00
helpflags.go ux(getting started): progress on getting started panel and persited help flag states, #6466 2016-11-09 10:41:39 +01:00
home_dashboard.go Worked on home dashboard 2015-02-03 15:04:35 +01:00
login_attempt.go login: uses epochs for login throtting. 2018-02-16 17:25:46 +01:00
models.go social: add GitLab authentication backend 2018-08-14 14:11:48 +02:00
notifications.go Email: add reply-to and direct attachment (#18715) 2019-08-26 16:44:18 +02:00
org_user.go Fixed gofmt issue in PR #16093 2019-03-20 10:58:20 +01:00
org.go LDAP: Add API endpoint to debug user mapping from LDAP (#18833) 2019-09-03 18:34:44 +01:00
playlist.go HTTP API documentation +fix when updating a playlist (#12612) 2018-07-17 07:45:38 -07:00
plugin_settings.go refactor(securejsondata): extract to class 2016-11-24 13:22:25 +01:00
preferences.go feat: team preferences 2018-11-12 20:01:53 +01:00
quotas.go move toMap function to be a method on the quota structs 2015-09-15 17:18:26 +08:00
saml.go Auth: SAML login button. (#17932) 2019-07-05 15:24:52 +02:00
search.go Major refactorings around searching, moved to seperate package, trying to move stuff out of models package, extend search support searching different types of entities and different types of dashboards, #960 2015-05-13 13:36:24 +02:00
star.go Added isStarred to search result hit, very inefficient loading right now but can be cached later on 2015-02-05 09:49:00 +01:00
stats.go metrics: expose stats about roles as metrics (#17469) 2019-06-06 16:39:35 +02:00
streams.go mergefix(): fixed issue with master merge 2017-01-31 09:00:36 +01:00
tags_test.go Create annotations (#8197) 2017-10-07 10:31:39 +02:00
tags.go Create annotations (#8197) 2017-10-07 10:31:39 +02:00
team_member.go Teams: show proper label for each auth provider (#17860) 2019-07-03 16:52:10 +03:00
team.go API: Restrict anonymous user information access (#18422) 2019-08-12 20:03:48 +02:00
temp_user.go signup: fix email sent logic for tempuser 2017-06-30 20:21:08 +02:00
test_data.go mysql: minor progress on response processing 2017-03-31 11:45:25 +02: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
user.go API: Minor fix for team creation endpoint when using API key (#18252) 2019-08-08 11:27:47 +03:00