92 lines
2.5 KiB
XML
92 lines
2.5 KiB
XML
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
|
<!DOCTYPE template SYSTEM "template.dtd">
|
|
|
|
<template>
|
|
<askcontainer>1</askcontainer>
|
|
<description>New Courier Mail Account</description>
|
|
<icon>mail_account.png</icon>
|
|
<invalid>0</invalid>
|
|
<rdn>cn</rdn>
|
|
<!--<regexp>^ou=People,o=.*,</regexp>-->
|
|
<title>Courier Mail: Account</title>
|
|
<visible>1</visible>
|
|
|
|
<objectClasses>
|
|
<objectClass id="inetOrgPerson"></objectClass>
|
|
<objectClass id="courierMailAccount"></objectClass>
|
|
</objectClasses>
|
|
|
|
<attributes>
|
|
<attribute id="givenName">
|
|
<display>Given Name</display>
|
|
<onchange>=autoFill(cn;%givenName% %sn%)</onchange>
|
|
<onchange>=autoFill(uid;%gidNumber|0-0/T%-%givenName|0-1/l%%sn/l%)</onchange>
|
|
<order>1</order>
|
|
<page>1</page>
|
|
</attribute>
|
|
<attribute id="sn">
|
|
<display>Last name</display>
|
|
<onchange>=autoFill(cn;%givenName% %sn%)</onchange>
|
|
<onchange>=autoFill(uid;%gidNumber|0-0/T%-%givenName|0-1/l%%sn/l%)</onchange>
|
|
<order>2</order>
|
|
<page>1</page>
|
|
</attribute>
|
|
<attribute id="cn">
|
|
<display>Common Name</display>
|
|
<order>3</order>
|
|
<page>1</page>
|
|
<spacer>1</spacer>
|
|
</attribute>
|
|
<attribute id="uid">
|
|
<display>User ID</display>
|
|
<icon>ldap-uid.png</icon>
|
|
<!--<onchange>=autoFill(homeDirectory;/home/users/%uid%)</onchange>-->
|
|
<onchange>=autoFill(homeDirectory;/home/users/%gidNumber|0-0/T%/%uid|3-%)</onchange>
|
|
<order>4</order>
|
|
<page>1</page>
|
|
</attribute>
|
|
<attribute id="uidNumber">
|
|
<display>UID Number</display>
|
|
<icon>terminal.png</icon>
|
|
<order>6</order>
|
|
<page>1</page>
|
|
<readonly>1</readonly>
|
|
<value>=php.GetNextNumber(/;uidNumber)</value>
|
|
</attribute>
|
|
<attribute id="gidNumber">
|
|
<display>GID Number</display>
|
|
<onchange>=autoFill(uid;%gidNumber|0-0/T%-%givenName|0-1/l%%sn/l%)</onchange>
|
|
<onchange>=autoFill(homeDirectory;/home/users/%gidNumber|0-0/T%/%uid|3-%)</onchange>
|
|
<order>7</order>
|
|
<page>1</page>
|
|
<spacer>1</spacer>
|
|
<value><![CDATA[=php.PickList(/;(&(objectClass=posixGroup));gidNumber;%cn%;;;;cn)]]></value>
|
|
</attribute>
|
|
<attribute id="homeDirectory">
|
|
<display>Home Directory</display>
|
|
<order>8</order>
|
|
<page>1</page>
|
|
</attribute>
|
|
<attribute id="mail">
|
|
<display>Email</display>
|
|
<icon>mail.png</icon>
|
|
<order>9</order>
|
|
<page>1</page>
|
|
</attribute>
|
|
<attribute id="mailbox">
|
|
<display>Mailbox</display>
|
|
<order>10</order>
|
|
<page>1</page>
|
|
</attribute>
|
|
<attribute id="userPassword">
|
|
<display>Password</display>
|
|
<icon>lock.png</icon>
|
|
<order>11</order>
|
|
<page>1</page>
|
|
<post>=php.PasswordEncrypt(%enc%;%userPassword%)</post>
|
|
<verify>1</verify>
|
|
</attribute>
|
|
</attributes>
|
|
|
|
</template>
|