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

Fix URL to propagate username context as parameter
This commit is contained in:
Bradley
2025-09-30 14:53:01 -04:00
committed by GitHub
parent 7be0c100b6
commit 7055ba9140
@@ -30,7 +30,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);