Skip to content
Snippets Groups Projects
Commit 6d2f14a1 authored by Hiro's avatar Hiro :surfer:
Browse files

Update documentation on how to add a new user on LDAP - create a new account procedure

parent 369424a4
No related branches found
No related tags found
No related merge requests found
......@@ -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:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment