Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Wiki Replica
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
The Tor Project
TPA
Wiki Replica
Commits
5a4be1f7
Unverified
Commit
5a4be1f7
authored
3 years ago
by
anarcat
Browse files
Options
Downloads
Patches
Plain Diff
document how i unlocked irl (#40205)
parent
41945891
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
howto/retire-a-user.md
+15
-0
15 additions, 0 deletions
howto/retire-a-user.md
with
15 additions
and
0 deletions
howto/retire-a-user.md
+
15
−
0
View file @
5a4be1f7
...
...
@@ -23,6 +23,21 @@ they were before. You can only do this by restoring from the [howto/LDAP](howto/
database. No, that is not fun at all. Be careful to avoid duplicate
fields when you re-add them in ldapvi.
If the user was just "locked", you might be able to re-enable it by
doing the following:
*
delete the
`accountStatus`
,
`shadowExpire`
fields
*
add the
`keyFingerprint`
field matching the (trusted) fingerprint
*
change the user's password to something that is not locked
To set a password, you need to find a way to generate a salted UNIX
hashed password, and there are many ways to do that, but if you have a
copy of the userdir-ldap source code lying around, this could just do
it:
>>> from userdir_ldap import HashPass, GenPass
>>> print("{crypt}" + HashPass(GenPass()))
# How to disable a user
This is done by removing all traces of the account:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment