phpldapadmin/templates/courierMailAccount.xml

112 lines
2.7 KiB
XML
Raw Normal View History

2009-06-30 09:29:51 +00:00
<template>
<title>courier_mail_account</title>
<!--<regexp>^ou=People,o=.*,</regexp>-->
<icon>images/mail_account.png</icon>
<description>New Courier Mail Account</description>
<askcontainer>1</askcontainer>
<rdn>cn</rdn>
<visible>1</visible>
<invalid>0</invalid>
<objectClasses>
<objectClass id="inetOrgPerson"></objectClass>
<objectClass id="courierMailAccount"></objectClass>
</objectClasses>
<attributes>
<attribute id="uid">
<display>t_uid</display>
<icon>images/uid.png</icon>
<description></description>
<hint></hint>
<onchange>autoFill:homeDirectory,/home/users/%uid%</onchange>
<order>1</order>
<page>1</page>
</attribute>
<attribute id="mail">
<display>t_email</display>
<icon>images/mail.png</icon>
<description></description>
<hint></hint>
<order>2</order>
<page>1</page>
</attribute>
<attribute id="mailbox">
<display>Mailbox</display>
<order>3</order>
<page>1</page>
<spacer>1</spacer>
<spacer>1</spacer>
</attribute>
<attribute id="sn">
<display>t_last_name</display>
<description></description>
<hint></hint>
<icon></icon>
<onchange>autoFill:cn,%givenName% %sn%</onchange>
<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>4</order>
<page>1</page>
</attribute>
<attribute id="cn">
<display>Common Name</display>
<description></description>
<hint></hint>
<icon></icon>
<order>5</order>
<page>1</page>
</attribute>
<attribute id="uidNumber">
<icon>images/terminal.png</icon>
<display>t_uid_number</display>
<description></description>
<hint>t_auto_det</hint>
<default></default>
<presubmit>=php.GetNextNumber(/,uid)</presubmit>
<order>6</order>
<page>1</page>
<hidden>0</hidden>
</attribute>
<attribute id="gidNumber">
<display>t_gid_number</display>
<description></description>
<hint></hint>
<default>=php.PickList(/,(objectClass=posixGroup),gidNumber,%cn%)</default>
<onchange>autoFill:homeDirectory,/home/users/%gidNumber|0-0/T%/%uid|3-%</onchange>
<order>7</order>
<page>1</page>
</attribute>
<attribute id="homeDirectory">
<display>t_home_dir</display>
<description></description>
<hint></hint>
<order>8</order>
<page>1</page>
<spacer>1</spacer>
</attribute>
<attribute id="userPassword">
<display>t_password</display>
<icon>images/lock.png</icon>
<description></description>
<hint></hint>
<default></default>
<order>9</order>
<page>1</page>
<type>password</type>
<verify>1</verify>
<helper>
<id>enc</id>
<display>t_encryption</display>
<location>side</location>
<description></description>
<hint></hint>
<value>clear</value>
<value>md5</value>
</helper>
<post>=php.Password(%enc%,%userPassword%)</post>
</attribute>
</attributes>
</template>