phpldapadmin/templates/creation/posixAccount.xml

96 lines
2.7 KiB
XML
Raw Normal View History

2009-06-30 09:40:37 +00:00
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE template SYSTEM "template.dtd">
2009-06-30 09:29:51 +00:00
<template>
<askcontainer>1</askcontainer>
<description>New User Account</description>
<icon>images/user.png</icon>
<invalid>0</invalid>
2009-06-30 09:29:51 +00:00
<rdn>cn</rdn>
<!--<regexp>^ou=People,o=.*,</regexp>-->
<title>Generic: User Account</title>
2009-06-30 09:29:51 +00:00
<visible>1</visible>
<objectClasses>
<objectClass id="inetOrgPerson"></objectClass>
<objectClass id="posixAccount"></objectClass>
</objectClasses>
<attributes>
<attribute id="givenName">
2009-06-30 10:26:08 +00:00
<display>First name</display>
2009-06-30 09:29:51 +00:00
<icon>images/uid.png</icon>
<onchange>=autoFill(cn;%givenName% %sn%)</onchange>
<onchange>=autoFill(uid;%givenName|0-1/l%%sn/l%)</onchange>
2009-06-30 09:29:51 +00:00
<order>1</order>
<page>1</page>
</attribute>
<attribute id="sn">
2009-06-30 10:26:08 +00:00
<display>Last name</display>
<onchange>=autoFill(cn;%givenName% %sn%)</onchange>
<onchange>=autoFill(uid;%givenName|0-1/l%%sn/l%)</onchange>
<!-- <onchange>=autoFill(homeDirectory;/home/users/%uid|0-1/l%/%uid%)</onchange> -->
2009-06-30 09:29:51 +00:00
<order>2</order>
<page>1</page>
</attribute>
<attribute id="cn">
<display>Common Name</display>
<order>3</order>
<page>1</page>
</attribute>
<attribute id="uid">
2009-06-30 10:26:08 +00:00
<display>User ID</display>
<onchange>=autoFill(homeDirectory;/home/users/%uid%)</onchange>
2009-06-30 09:29:51 +00:00
<order>4</order>
<page>1</page>
<spacer>1</spacer>
</attribute>
<attribute id="homeDirectory">
2009-06-30 10:26:08 +00:00
<display>Home directory</display>
<!-- <onchange>=autoFill(homeDirectory;/home/users/%gidNumber|0-0/T%/%uid|3-%)</onchange> -->
2009-06-30 09:29:51 +00:00
<order>8</order>
<page>1</page>
</attribute>
<attribute id="uidNumber">
2009-06-30 10:26:08 +00:00
<display>UID Number</display>
2009-06-30 09:40:37 +00:00
<icon>images/terminal.png</icon>
2009-06-30 09:29:51 +00:00
<order>6</order>
<page>1</page>
2009-06-30 10:46:00 +00:00
<readonly>1</readonly>
<value>=php.GetNextNumber(/;uidNumber)</value>
2009-06-30 09:29:51 +00:00
</attribute>
<attribute id="gidNumber">
2009-06-30 10:26:08 +00:00
<display>GID Number</display>
<!-- <onchange>=autoFill(homeDirectory;/home/users/%gidNumber|0-0/T%/%uid|3-%)</onchange> -->
2009-06-30 09:29:51 +00:00
<order>7</order>
<page>1</page>
<value><![CDATA[=php.PickList(/;(&(objectClass=posixGroup));gidNumber;%cn%)]]></value>
2009-06-30 09:29:51 +00:00
</attribute>
<attribute id="loginShell">
2009-06-30 10:26:08 +00:00
<display>Login shell</display>
2009-06-30 09:29:51 +00:00
<order>9</order>
<page>1</page>
<!-- <value><![CDATA[=php.PickList(/;(&(objectClass=posixAccount));loginShell;%loginShell%)]]></value> -->
<type>select</type>
<value id="/bin/sh">/bin/sh</value>
<value id="/bin/csh">/bin/csh</value>
<value id="/bin/tsh">/bin/tsh</value>
2009-06-30 09:29:51 +00:00
</attribute>
<attribute id="userPassword">
2009-06-30 10:26:08 +00:00
<display>Password</display>
<!-- <helper>
2009-06-30 10:26:08 +00:00
<display>Encryption</display>
2009-06-30 09:40:37 +00:00
<id>enc</id>
<value>=php.PasswordEncryptionTypes()</value>
</helper> -->
<icon>images/lock.png</icon>
2009-06-30 09:40:37 +00:00
<order>5</order>
<page>1</page>
<post>=php.PasswordEncrypt(%enc%;%userPassword%)</post>
2009-06-30 09:40:37 +00:00
<spacer>1</spacer>
<verify>1</verify>
2009-06-30 09:29:51 +00:00
</attribute>
</attributes>
2009-06-30 09:29:51 +00:00
</template>