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

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:50 -04:00
committed by GitHub
co-authored by Bradley
parent cfd4902d33
commit 5d655ccf37
@@ -28,7 +28,7 @@ export class UserLdapSyncInfo extends PureComponent<Props, State> {
const { ldapSyncInfo, user } = this.props;
const nextSyncSuccessful = ldapSyncInfo && ldapSyncInfo.nextSync;
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 canSyncLDAPUser = contextSrv.hasPermission(AccessControlAction.LDAPUsersSync);