70914f1b6a4cd94284c01059ac95cd3fdcc2e9fa
[mirror/dsa-wiki.git] / input / howto / add-guest.creole
1 == Add a guest account to ud-ldap ==
2
3 === add to guest keyring ===
4
5 Import the guest key into your keyring.
6 {{{
7         echo -n "New user's key fingerprint: " &&
8         read fingerprint &&
9         gpg --recv-keys "`echo $fingerprint | tr -d ' ' | cut -b 25-`"
10 }}}
11
12 Change to the directory where you keep the guest-keyring repository:
13 {{{
14         cd ~/dsa/guest-keyring
15 }}}
16
17 Export from your keyring into the guest-keyring using:
18 {{{
19         git pull &&
20         echo -n "New user's key fingerprint: " &&
21         read fingerprint &&
22         ./add-key "`echo $fingerprint | tr -d ' '`" &&
23         git add debian-guest/add-"`echo $fingerprint | tr -d ' ' | cut -b 25-`" &&
24         git add debian-guest/index debian-guest/index.gpg &&
25         git commit -a &&
26         git push
27 }}}
28
29 === add to ldap ===
30
31 Once that is done, login to db (aka draghi) and add the account:
32 {{{
33         ud-useradd -g
34 }}}
35
36 * note the -g, this is for guest accounts (doesn't prompt for -private etc.)
37 * enter fingerprint, account name, [fml] name and forwarding address.
38 * enter expiry date and hosts to allow access to, per the request.
39   Two months is typical.