6ebee33f698eebdb93cdc0aa442e9168991abb1a
[matthijs/servers/drsnuggles.git] / etc / phpldapadmin / templates / creation / posixAccount.xml
1 <?xml version="1.0" encoding="UTF-8" standalone="no"?>
2 <!DOCTYPE template SYSTEM "template.dtd">
3 <template>
4 <title>User Account</title>
5 <!--<regexp>^ou=People,o=.*,</regexp>-->
6 <icon>images/user.png</icon>
7 <description>New User Account</description>
8 <askcontainer>1</askcontainer>
9 <rdn>cn</rdn>
10 <visible>1</visible>
11
12 <objectClasses>
13 <objectClass id="inetOrgPerson"></objectClass>
14 <objectClass id="posixAccount"></objectClass>
15 <objectClass id="hostObject"></objectClass>
16 </objectClasses>
17
18 <attributes>
19 <attribute id="givenName">
20         <display>First name</display>
21         <icon>images/uid.png</icon>
22         <onchange>autoFill:cn,%givenName% %sn%</onchange>
23         <onchange>autoFill:uid,%givenName|0-1/l%%sn/l%</onchange>
24         <order>1</order>
25         <page>1</page>
26 </attribute>
27 <attribute id="sn">
28         <display>Last name</display>
29         <onchange>autoFill:cn,%givenName% %sn%</onchange>
30         <onchange>autoFill:uid,%givenName|0-1/l%%sn/l%</onchange>
31         <!-- <onchange>autoFill:homeDirectory,/home/users/%uid|0-1/l%/%uid%</onchange> -->
32         <order>2</order>
33         <page>1</page>
34 </attribute>
35 <attribute id="cn">
36         <display>Common Name</display>
37         <order>3</order>
38         <page>1</page>
39 </attribute>
40 <attribute id="uid">
41         <display>User ID</display>
42         <onchange>autoFill:homeDirectory,/home/%uid%</onchange>
43         <order>4</order>
44         <page>1</page>
45         <spacer>1</spacer>
46 </attribute>
47 <attribute id="homeDirectory">
48         <display>Home directory</display>
49         <!-- <onchange>autoFill:homeDirectory,/home/users/%gidNumber|0-0/T%/%uid|3-%</onchange> -->
50         <order>8</order>
51         <page>1</page>
52 </attribute>
53 <attribute id="uidNumber">
54         <display>UID Number</display>
55         <hint>Automatically determined</hint>
56         <icon>images/terminal.png</icon>
57         <order>6</order>
58         <page>1</page>
59         <value>=php.GetNextNumber(/,uid)</value>
60         <readonly>1</readonly>
61 </attribute>
62 <attribute id="gidNumber">
63         <display>GID Number</display>
64         <!-- <onchange>autoFill:homeDirectory,/home/users/%gidNumber|0-0/T%/%uid|3-%</onchange> -->
65         <order>7</order>
66         <page>1</page>
67         <option>=php.PickList(/,(objectClass=posixGroup),gidNumber,%cn%)</option>
68 </attribute>
69 <attribute id="loginShell">
70         <display>Login shell</display>
71         <order>9</order>
72         <page>1</page>
73         <!-- <option>=php.PickList(/,(objectClass=posixAccount),loginShell,%loginShell%)</option> -->
74         <option>/bin/sh</option>
75         <option>/bin/bash</option>
76 </attribute>
77 <attribute id="userPassword">
78         <display>Password</display>
79         <icon>images/lock.png</icon>
80         <type>password</type>
81         <verify>1</verify>
82         <helper>
83                 <display>Encryption</display>
84                 <id>enc</id>
85                 <option>blowfish</option>
86                 <option>clear</option>
87                 <option>crypt</option>
88                 <option>ext_des</option>
89                 <option>md5</option>
90                 <option>md5crypt</option>
91                 <option>sha</option>
92                 <option>smd5</option>
93                 <option>ssha</option>
94                 <value>ssha</value>
95         </helper>
96         <post>=php.Password(%enc%,%userPassword%)</post>
97         <order>5</order>
98         <page>1</page>
99         <spacer>1</spacer>
100 </attribute>
101 <attribute id="host">
102         <display>Accessable hosts</display>
103         <hidden>0</hidden>
104         <order>3</order>
105         <page>1</page>
106 </attribute>
107 </attributes>
108 </template>