fix add-guest command
[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 first, import the guest key into your keyring:
6 {{{
7         echo -n "New user's key fingerprint: " &&
8         read fingerprint &&
9         ./add-key "`echo $fingerprint | tr -d ' '`" &&
10 }}}
11
12 then, add the guest's public gpg key into the guest keyring by
13 {{{
14         cd ~/dsa/guest-keyring
15 }}}
16
17 or whereever you keep the checkout and executing:
18 {{{
19
20         git pull &&
21         echo -n "New user's key fingerprint: " &&
22         read fingerprint &&
23         ./add-key "`echo $fingerprint | tr -d ' '`" &&
24         git add debian-guest/add-"`echo $fingerprint | tr -d ' ' | cut -b 25-`" &&
25         git add debian-guest/index debian-guest/index.gpg &&
26         git commit -a &&
27         git push
28 }}}
29
30 === add to ldap ===
31
32 Once that is done, to to db-master (aka draghi) and add the account:
33
34 {{{
35         ud-useradd -g
36 }}}
37
38 * note the -g, this is for guest accounts (doesn't prompt for -private etc.)
39 * enter fingerprint, account name, [fml] name and forwarding address.
40 * enter expiry date and hosts to allow access to, per the request.
41   Two months is typical.