1 <?xml version="1.0" encoding="UTF-8" standalone="no"?>
2 <!DOCTYPE template SYSTEM "template.dtd">
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>
13 <objectClass id="inetOrgPerson"></objectClass>
14 <objectClass id="posixAccount"></objectClass>
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>
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> -->
35 <display>Common Name</display>
40 <display>User ID</display>
41 <onchange>autoFill:homeDirectory,/home/users/%uid%</onchange>
46 <attribute id="homeDirectory">
47 <display>Home directory</display>
48 <!-- <onchange>autoFill:homeDirectory,/home/users/%gidNumber|0-0/T%/%uid|3-%</onchange> -->
52 <attribute id="uidNumber">
53 <display>UID Number</display>
54 <hint>Automatically determined</hint>
55 <icon>images/terminal.png</icon>
58 <value>=php.GetNextNumber(/,uid)</value>
59 <readonly>1</readonly>
61 <attribute id="gidNumber">
62 <display>GID Number</display>
63 <!-- <onchange>autoFill:homeDirectory,/home/users/%gidNumber|0-0/T%/%uid|3-%</onchange> -->
66 <option>=php.PickList(/,(objectClass=posixGroup),gidNumber,%cn%)</option>
68 <attribute id="loginShell">
69 <display>Login shell</display>
72 <!-- <option>=php.PickList(/,(objectClass=posixAccount),loginShell,%loginShell%)</option> -->
73 <option>/bin/sh</option>
74 <option>/bin/tsh</option>
75 <option>/bin/csh</option>
77 <attribute id="userPassword">
78 <display>Password</display>
79 <icon>images/lock.png</icon>
83 <display>Encryption</display>
85 <option>blowfish</option>
86 <option>clear</option>
87 <option>crypt</option>
88 <option>ext_des</option>
90 <option>md5crypt</option>
96 <post>=php.Password(%enc%,%userPassword%)</post>