Merge branch 'master' of ssh://db.debian.org/git/dsa-wiki
[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 at home:
6
7 {{{
8 cd projects/debian/d-a/guest-keyring
9 }}}
10
11 or whereever you keep the checkout.  Then
12 {{{
13 git pull &&
14 echo -n "New user's key fingerprint: " &&
15 read fingerprint &&
16 ./add-key "`echo $fingerprint | tr -d ' '`" &&
17 git add debian-guest/add-"`echo $fingerprint | tr -d ' ' | cut -b 25-`" &&
18 git add debian-guest/index debian-guest/index.gpg &&
19 git ci &&
20 git push
21 }}}
22
23 === add to ldap ===
24
25 Once that is done, to to db-master (aka draghi) and add the account:
26
27 {{{
28 ud-useradd -n
29 }}}
30
31 * enter fingerprint, account name, [fml] name and forwarding address.
32 * do _not_ subscribe to -private (enter a <space> character)
33 * keep uid number
34 * use 60000 as gid number
35
36 Then set an expire date for the user:
37 {{{
38 echo -n "userid of new user: " &&
39 read uid &&
40 ldapvi --encoding=ASCII -ZZ --ldap-conf -h db.debian.org -D uid=$USER,ou=users,dc=debian,dc=org "uid=$uid"
41 }}}
42
43 and set {{{shadowExpire}}} to today + 60 days (   {{{echo $(( `date +%s` / 3600 / 24 + 60 ))}}}   ).