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>
15 <objectClass id="hostObject"></objectClass>
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>
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> -->
36 <display>Common Name</display>
41 <display>User ID</display>
42 <onchange>autoFill:homeDirectory,/home/%uid%</onchange>
47 <attribute id="homeDirectory">
48 <display>Home directory</display>
49 <!-- <onchange>autoFill:homeDirectory,/home/users/%gidNumber|0-0/T%/%uid|3-%</onchange> -->
53 <attribute id="uidNumber">
54 <display>UID Number</display>
55 <hint>Automatically determined</hint>
56 <icon>images/terminal.png</icon>
59 <value>=php.GetNextNumber(/,uid)</value>
60 <readonly>1</readonly>
62 <attribute id="gidNumber">
63 <display>GID Number</display>
64 <!-- <onchange>autoFill:homeDirectory,/home/users/%gidNumber|0-0/T%/%uid|3-%</onchange> -->
67 <option>=php.PickList(/,(objectClass=posixGroup),gidNumber,%cn%)</option>
69 <attribute id="loginShell">
70 <display>Login shell</display>
73 <!-- <option>=php.PickList(/,(objectClass=posixAccount),loginShell,%loginShell%)</option> -->
74 <option>/bin/sh</option>
75 <option>/bin/bash</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>
101 <attribute id="host">
102 <display>Accessable hosts</display>