blob: 8acd4b465c42dba2d705c3e05a3e3f6f261532bd (
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 %]">Reset password</a>
<a href="[% c.uri_for('/admin/account_group') %]/[% uid %]">Groups</a>
<form method="post" action="">
<input type='hidden' name='operation' value='replace' />
<table border=0>
<tr>
<th>Attribute</th>
<th>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 %]">Add</a>
[% END %]
[% IF attr.removable AND attr.editable %]
<a href="[% c.uri_for('/admin/account_modifydel') %]/[% uid %]/[% attr.name %]/[% val %]">Delete</a>
[% END %]
[% END %]
</td>
</tr>
[% END %]
<tr>
<td colspan=2 align=center>
<input type='Submit' value='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>
Add attribute
<select name='attribute'>
[% FOREACH attr IN may %]
<option value="[% attr %]">[% attr %]</option>
[% END %]
</select>
with value
<input name="value" value="" />
<input type="submit" value="Add" />
</p>
</form>
<hr />
[% IF groups %]
<p>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="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="Add ObjectClass" />
</form>
<hr />
|