phpldapadmin/templates/sambaMachine.xml
2009-06-30 20:26:08 +10:00

66 lines
1.8 KiB
XML

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE template SYSTEM "template.dtd">
<template>
<title>Samba3 Machine</title>
<!--<regexp>^ou=People,o=.*,</regexp>-->
<icon>images/server.png</icon>
<description>New Samba3 Machine</description>
<askcontainer>1</askcontainer>
<rdn>uid</rdn>
<visible>1</visible>
<objectClasses>
<objectClass id="sambaSAMAccount"></objectClass>
<objectClass id="posixAccount"></objectClass>
<objectClass id="account"></objectClass>
</objectClasses>
<attributes>
<attribute id="uid">
<display>Machine Name</display>
<hint>The machine name should end with a $</hint>
<icon>images/terminal.png</icon>
<onchange>autoFill:cn,%uid%</onchange>
<order>1</order>
<page>1</page>
</attribute>
<attribute id="uidNumber">
<display>UID Number</display>
<hint>Automatically determined</hint>
<order>2</order>
<page>1</page>
<presubmit>=php.GetNextNumber(/,uid)</presubmit>
</attribute>
<attribute id="gidNumber">
<display>GID Number</display>
<order>3</order>
<page>1</page>
<value>=php.PickList(/,(objectClass=posixGroup),gidNumber,%cn%)</value>
</attribute>
<attribute id="sambaSID">
<display>Samba SID</display>
<helper>
<id>sidsuffix</id>
<location>side</location>
<value></value>
</helper>
<order>2</order>
<page>1</page>
<post>=php.Join(-,(%sambaSID%,%sidsuffix%))</post>
<value>=php.PickList(/,(objectClass=sambaDomain),sambaSID,%sambaSID% (%sambaDomainName%))</value>
</attribute>
<attribute id="sambaAcctFlags">
<hidden>1</hidden>
<value>[W]</value>
</attribute>
<attribute id="homeDirectory">
<hidden>1</hidden>
<value>/dev/null</value>
</attribute>
<attribute id="cn">
<hidden>1</hidden>
<value></value>
</attribute>
</attributes>
</template>