2931c1ee757b95acd9387850796a7f3013d922c4
[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
4 <template>
5 <askcontainer>1</askcontainer>
6 <description>New User Account</description>
7 <icon>ldap-user.png</icon>
8 <invalid>0</invalid>
9 <rdn>cn</rdn>
10 <!--<regexp>^ou=People,o=.*,</regexp>-->
11 <title>Generic: User Account</title>
12 <visible>1</visible>
13
14 <objectClasses>
15 <objectClass id="inetOrgPerson"></objectClass>
16 <objectClass id="posixAccount"></objectClass>
17 </objectClasses>
18
19 <attributes>
20 <attribute id="givenName">
21         <display>First name</display>
22         <icon>ldap-uid.png</icon>
23         <onchange>=autoFill(cn;%givenName% %sn%)</onchange>
24         <onchange>=autoFill(uid;%givenName|0-1/l%%sn/l%)</onchange>
25         <order>1</order>
26         <page>1</page>
27 </attribute>
28 <attribute id="sn">
29         <display>Last name</display>
30         <onchange>=autoFill(cn;%givenName% %sn%)</onchange>
31         <onchange>=autoFill(uid;%givenName|0-1/l%%sn/l%)</onchange>
32         <!-- <onchange>=autoFill(homeDirectory;/home/users/%uid|0-1/l%/%uid%)</onchange> -->
33         <order>2</order>
34         <page>1</page>
35 </attribute>
36 <attribute id="cn">
37         <display>Common Name</display>
38         <order>3</order>
39         <page>1</page>
40 </attribute>
41 <attribute id="uid">
42         <display>User ID</display>
43         <onchange>=autoFill(homeDirectory;/home/users/%uid%)</onchange>
44         <order>4</order>
45         <page>1</page>
46         <spacer>1</spacer>
47 </attribute>
48 <attribute id="homeDirectory">
49         <display>Home directory</display>
50         <!-- <onchange>=autoFill(homeDirectory;/home/users/%gidNumber|0-0/T%/%uid|3-%)</onchange> -->
51         <order>8</order>
52         <page>1</page>
53 </attribute>
54 <attribute id="uidNumber">
55         <display>UID Number</display>
56         <icon>terminal.png</icon>
57         <order>6</order>
58         <page>1</page>
59         <readonly>1</readonly>
60         <value>=php.GetNextNumber(/;uidNumber)</value>
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         <value><![CDATA[=php.PickList(/;(&(objectClass=posixGroup));gidNumber;%cn%;;;;cn)]]></value>
68 </attribute>
69 <attribute id="loginShell">
70         <display>Login shell</display>
71         <order>9</order>
72         <page>1</page>
73         <!-- <value><![CDATA[=php.PickList(/;(&(objectClass=posixAccount));loginShell;%loginShell%;;;;loginShell)]]></value> -->
74         <type>select</type>
75         <value id="/bin/sh">/bin/sh</value>
76         <value id="/bin/csh">/bin/csh</value>
77         <value id="/bin/tsh">/bin/tsh</value>
78 </attribute>
79 <attribute id="userPassword">
80         <display>Password</display>
81         <!-- <helper>
82                 <display>Encryption</display>
83                 <id>enc</id>
84                 <value>=php.PasswordEncryptionTypes()</value>
85         </helper> -->
86         <icon>lock.png</icon>
87         <order>5</order>
88         <page>1</page>
89         <post>=php.PasswordEncrypt(%enc%;%userPassword%)</post>
90         <spacer>1</spacer>
91         <verify>1</verify>
92 </attribute>
93 </attributes>
94
95 </template>