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
6d2f14a1
Commit
6d2f14a1
authored
4 years ago
by
Hiro
Browse files
Options
Downloads
Patches
Plain Diff
Update documentation on how to add a new user on LDAP - create a new account procedure
parent
369424a4
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
tsa/howto/create-a-new-user.mdwn
+14
-11
14 additions, 11 deletions
tsa/howto/create-a-new-user.mdwn
with
14 additions
and
11 deletions
tsa/howto/create-a-new-user.mdwn
+
14
−
11
View file @
6d2f14a1
...
...
@@ -30,21 +30,24 @@ The short version is:
FINGERPRINT=0123456789ABCDEF0123456789ABCDEF01234567 &&
NEW_USER=alice &&
REQUESTOR=bob &&
./NEW "$FINGERPRINT" "$NEW_USER" &&
./NEW "$FINGERPRINT" "$NEW_USER" &&
git add torproject-keyring/"${NEW_USER}-${FINGERPRINT}.gpg" &&
git commit -m"new user ${NEW_USER} requested by ${REQUESTOR}" &&
git push &&
git push alberti &&
ssh -tt $USER@alberti.torproject.org "ud-useradd -n && sudo -u sshdist ud-generate && sudo -H ud-replicate"
See below for detailed instructions.
The last line will create the user on the LDAP server. If you are interested about
the details see below for detailed instructions.
Notice that when prompted for whom to add (`a GPG search`), enter the full
`$FINGERPRINT` verified above
## on your own machine
For example, your laptop.
1. verify the OpenPGP key provided
It should be signed by a trusted key in the keyring or in a
message signed by a trusted key. See [[doc/accounts]] when
unsure.
...
...
@@ -54,12 +57,12 @@ For example, your laptop.
FINGERPRINT=0123456789ABCDEF0123456789ABCDEF01234567
NEW_USER=alice
REQUESTOR=bob
./NEW "$FINGERPRINT" "$NEW_USER" &&
./NEW "$FINGERPRINT" "$NEW_USER" &&
git add torproject-keyring/"${NEW_USER}-${FINGERPRINT}.gpg" &&
git commit -m"new user ${NEW_USER} requested by ${REQUESTOR}"
3. push to both repositories:
git push &&
git push alberti
...
...
@@ -69,13 +72,13 @@ This is currently `alberti`. Make sure you run as a regular user with
LDAP write access.
1. create the user:
ud-useradd -n
This command asks a bunch of questions interactively that have
good defaults, mostly taken from the OpenPGP key material, but
it's important to review them anyways. in particular:
* when prompted for whom to add (`a GPG search`), enter the full
`$FINGERPRINT` verified above
...
...
@@ -96,7 +99,7 @@ LDAP write access.
`ldapvi`.
2. synchronize the change:
sudo -u sshdist ud-generate && sudo -H ud-replicate
## on other servers
...
...
@@ -106,11 +109,11 @@ change to another server manually. In this case, we force the change
to propagate to the email server, which is currently `eugeni`.
1. synchronize the change:
sudo -H ud-replicate
2. verify the email alias was correctly created:
egrep -q "${NEW_USER}@torproject.org" /etc/postfix/debian || echo "new user missing, please fix"
3. run puppet:
...
...
@@ -129,7 +132,7 @@ Here's how to create a role account:
2. On LDAP host (currently alberti.tpo), as a user with LDAP write
access, do:
ldapvi -ZZ --encoding=ASCII --ldap-conf -h db.torproject.org -D uid=${USER},ou=users,dc=torproject,dc=org
3. Create a new `group` role for the new 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