1 <?xml version="1.0" encoding="UTF-8" standalone="no"?>
2 <!DOCTYPE template SYSTEM "template.dtd">
5 <askcontainer>1</askcontainer>
6 <description>New User Account</description>
7 <icon>ldap-user.png</icon>
10 <!--<regexp>^ou=People,o=.*,</regexp>-->
11 <title>Generic: User Account</title>
15 <objectClass id="inetOrgPerson"></objectClass>
16 <objectClass id="posixAccount"></objectClass>
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>
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> -->
37 <display>Common Name</display>
42 <display>User ID</display>
43 <onchange>=autoFill(homeDirectory;/home/users/%uid%)</onchange>
48 <attribute id="homeDirectory">
49 <display>Home directory</display>
50 <!-- <onchange>=autoFill(homeDirectory;/home/users/%gidNumber|0-0/T%/%uid|3-%)</onchange> -->
54 <attribute id="uidNumber">
55 <display>UID Number</display>
56 <icon>terminal.png</icon>
59 <readonly>1</readonly>
60 <value>=php.GetNextNumber(/;uidNumber)</value>
62 <attribute id="gidNumber">
63 <display>GID Number</display>
64 <!-- <onchange>=autoFill(homeDirectory;/home/users/%gidNumber|0-0/T%/%uid|3-%)</onchange> -->
67 <value><![CDATA[=php.PickList(/;(&(objectClass=posixGroup));gidNumber;%cn%;;;;cn)]]></value>
69 <attribute id="loginShell">
70 <display>Login shell</display>
73 <!-- <value><![CDATA[=php.PickList(/;(&(objectClass=posixAccount));loginShell;%loginShell%;;;;loginShell)]]></value> -->
75 <value id="/bin/sh">/bin/sh</value>
76 <value id="/bin/csh">/bin/csh</value>
77 <value id="/bin/tsh">/bin/tsh</value>
79 <attribute id="userPassword">
80 <display>Password</display>
82 <display>Encryption</display>
84 <value>=php.PasswordEncryptionTypes()</value>
89 <post>=php.PasswordEncrypt(%enc%;%userPassword%)</post>