Resolving accidental user account takeover by a new LDAP user on GitHub Enterprise Server #153232
github-staff
started this conversation in
Discover
Replies: 6 comments
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as spam.
This comment was marked as spam.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Summary
This document outlines the steps to resolve issues where a new user on GitHub Enterprise Server (GHES) is mistakenly associated with an old user account due to matching LDAP Distinguished Name (DN) mappings.
This situation can occur when the LDAP DN of the new user account in the LDAP directory matches the LDAP DN (mapping) stored on GitHub Enterprise Server for an old user account, causing the new user to inherit the old user's account and access on the server.
Steps to Resolve
Ask the admin to follow the steps below to ensure that a new user account can be created on GitHub Enterprise Server for the new LDAP user.
1. Update the LDAP DN for the Old User Account
https://[hostname]/stafftools/users/[old_username]/admin
LDAP DN
field to a placeholder value, such asdeactivated
.Update
button.2. Verify and Update the Username for the Existing (old) GitHub Enterprise Server User Account
[old_username]
) is not the same as the "username" of the new LDAP user account to ensure that they do not conflict.uid
attribute as the "username" unless a custom mapping is configured in the Management Console under Authentication > User Fields > User ID.https://[hostname]/stafftools/users/[old_username]/admin
page.3. Verify and Update the Email Address
mail
attribute as the email address unless a custom mapping is configured in the Management Console under Authentication > User Fields > Emails.4. Re-Suspend the Old User Account
Sync now
button on the https://[hostname]/stafftools/users/[old_username]/admin page. The user account should automatically be re-suspended when LDAP Sync runs, since it would not be able to find an LDAP DN withdeactivated
.5. Update the
fallback_uid
for the Old User Accountfallback_uid
for the old GitHub Enterprise Server user account. Note thatghe-console
should only be used when advised by the GitHub Support team. Incorrect use could cause damage or data loss.[old_username]
with the username of the old user account.6. Ask the new LDAP user to try to log in again
Related Resources
If you encounter further issues or have additional questions, please contact GitHub Support.
Beta Was this translation helpful? Give feedback.
All reactions