blob: 0dc3678505e3c8da341cad4644a80b5ad41a72c9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
|
<a href="[% c.uri_for('/admin/password') %]/[% uid %]">[% l('Reset password') %]</a>
<a href="[% c.uri_for('/admin/account_group') %]/[% uid %]">[% l('Groups') %]</a>
<form method="post" action="">
<input type='hidden' name='operation' value='replace' />
<table border=0>
<tr>
<th>[% l('Attribute') %]</th>
<th>[% l('Value') %]</th>
</tr>
[% FOREACH attr IN values %]
<tr>
<td>[% attr.name %]</td>
<td>
[% FOREACH val IN attr.values %]
[% IF attr.editable %]
<input type="hidden" name="[% attr.name %]_old" value="[% val %]" />
<input name="[% attr.name %]_new" value="[% val %]" />
[% ELSE %]
[% val %]
<br/>
[% END %]
[% IF attr.addable AND attr.editable %]
<a href="[% c.uri_for('/admin/account_edit') %]/add/[% attr.name %]">[% l('Add') %]</a>
[% END %]
[% IF attr.removable AND attr.editable %]
<a href="[% c.uri_for('/admin/account_modifydel') %]/[% uid %]/[% attr.name %]/[% val %]">[% l('Delete') %]</a>
[% END %]
[% END %]
</td>
</tr>
[% END %]
<tr>
<td colspan=2 align=center>
<input type='Submit' value='[% l('Update') %]'>
</td>
</tr>
</table>
</form>
<hr />
<form method="post" action="[% c.uri_for('/admin/account_modify') %]/[% uid %]">
<input type="hidden" name="operation" value="add" />
<p>
[% l('Add attribute') %]
<select name='attribute'>
[% FOREACH attr IN may %]
<option value="[% attr %]">[% attr %]</option>
[% END %]
</select>
[% l('with value') %]
<input name="value" value="" />
<input type="submit" value="Add" />
</p>
</form>
<hr />
[% IF groups %]
<p>[% l('Promote user to posixAccount with primary group:') %] </p>
<form method="post" action="[% c.uri_for('/admin/account_promote') %]">
<input type="hidden" name="dn" value="[% dn %]" />
<select name="gid">
[% FOREACH group IN groups %]
<option value="[% group.gidNumber %]">[% group.name %]</option>
[% END %]
</select>
<input type="submit" value="[% l('Promote') %]" />
</form>
[% END %]
<hr />
<form method="post" action="[% c.uri_for('/admin/account_addoc') %]">
<input type='hidden' name='dn' value='[% dn %]'>
<input type='hidden' name='uid' value='[% uid %]'>
<select name='objectclass'>
[% FOREACH oc IN offer_ocs %]
<option value='[% oc %]'>[% oc %]</option>
[% END %]
</select>
<input type="submit" value="[% l('Add ObjectClass') %]" />
</form>
<hr />
|