c765de71a565f45a969d888b96b65e7a935ea02c
[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 </objectClasses>
16
17 <attributes>
18 <attribute id="givenName">
19         <display>First name</display>
20         <icon>images/uid.png</icon>
21         <onchange>autoFill:cn,%givenName% %sn%</onchange>
22         <onchange>autoFill:uid,%givenName|0-1/l%%sn/l%</onchange>
23         <order>1</order>
24         <page>1</page>
25 </attribute>
26 <attribute id="sn">
27         <display>Last name</display>
28         <onchange>autoFill:cn,%givenName% %sn%</onchange>
29         <onchange>autoFill:uid,%givenName|0-1/l%%sn/l%</onchange>
30         <!-- <onchange>autoFill:homeDirectory,/home/users/%uid|0-1/l%/%uid%</onchange> -->
31         <order>2</order>
32         <page>1</page>
33 </attribute>
34 <attribute id="cn">
35         <display>Common Name</display>
36         <order>3</order>
37         <page>1</page>
38 </attribute>
39 <attribute id="uid">
40         <display>User ID</display>
41         <onchange>autoFill:homeDirectory,/home/users/%uid%</onchange>
42         <order>4</order>
43         <page>1</page>
44         <spacer>1</spacer>
45 </attribute>
46 <attribute id="homeDirectory">
47         <display>Home directory</display>
48         <!-- <onchange>autoFill:homeDirectory,/home/users/%gidNumber|0-0/T%/%uid|3-%</onchange> -->
49         <order>8</order>
50         <page>1</page>
51 </attribute>
52 <attribute id="uidNumber">
53         <display>UID Number</display>
54         <hint>Automatically determined</hint>
55         <icon>images/terminal.png</icon>
56         <order>6</order>
57         <page>1</page>
58         <value>=php.GetNextNumber(/,uid)</value>
59         <readonly>1</readonly>
60 </attribute>
61 <attribute id="gidNumber">
62         <display>GID Number</display>
63         <!-- <onchange>autoFill:homeDirectory,/home/users/%gidNumber|0-0/T%/%uid|3-%</onchange> -->
64         <order>7</order>
65         <page>1</page>
66         <option>=php.PickList(/,(objectClass=posixGroup),gidNumber,%cn%)</option>
67 </attribute>
68 <attribute id="loginShell">
69         <display>Login shell</display>
70         <order>9</order>
71         <page>1</page>
72         <!-- <option>=php.PickList(/,(objectClass=posixAccount),loginShell,%loginShell%)</option> -->
73         <option>/bin/sh</option>
74         <option>/bin/tsh</option>
75         <option>/bin/csh</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>md5</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 </attributes>
102 </template>