[release-12.1.3] LDAP Authentication: Fix URL to propagate username context as parameter (#111848)

LDAP Authentication: Fix URL to propagate username context as parameter (#111723)

Fix URL to propagate username context as parameter

(cherry picked from commit 7055ba9140)

Co-authored-by: Bradley <12028233+bradleypettit@users.noreply.github.com>
This commit is contained in:
grafana-delivery-bot[bot] 2025-09-30 17:07:55 -04:00 committed by GitHub
parent bf33b3e067
commit c760f97bc4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -30,7 +30,7 @@ export class UserLdapSyncInfo extends PureComponent<Props, State> {
const { ldapSyncInfo, user } = this.props; const { ldapSyncInfo, user } = this.props;
const nextSyncSuccessful = ldapSyncInfo && ldapSyncInfo.nextSync; const nextSyncSuccessful = ldapSyncInfo && ldapSyncInfo.nextSync;
const nextSyncTime = nextSyncSuccessful ? dateTimeFormat(ldapSyncInfo.nextSync, { format }) : ''; const nextSyncTime = nextSyncSuccessful ? dateTimeFormat(ldapSyncInfo.nextSync, { format }) : '';
const debugLDAPMappingURL = `${debugLDAPMappingBaseURL}?user=${user && user.login}`; const debugLDAPMappingURL = `${debugLDAPMappingBaseURL}?username=${user && user.login}`;
const canReadLDAPUser = contextSrv.hasPermission(AccessControlAction.LDAPUsersRead); const canReadLDAPUser = contextSrv.hasPermission(AccessControlAction.LDAPUsersRead);
const canSyncLDAPUser = contextSrv.hasPermission(AccessControlAction.LDAPUsersSync); const canSyncLDAPUser = contextSrv.hasPermission(AccessControlAction.LDAPUsersSync);