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

146 lines
4.0 KiB
XML

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE template SYSTEM "template.dtd">
<template>
<title>Samba3 Account</title>
<!--<regexp>^ou=People,o=.*,</regexp>-->
<icon>images/user.png</icon>
<description>New Samba3 Account</description>
<askcontainer>1</askcontainer>
<rdn>cn</rdn>
<visible>1</visible>
<objectClasses>
<objectClass id="inetOrgPerson"></objectClass>
<objectClass id="sambaSAMAccount"></objectClass>
<objectClass id="posixAccount"></objectClass>
</objectClasses>
<attributes>
<attribute id="givenName">
<display>First name</display>
<icon>images/uid.png</icon>
<onchange>autoFill:cn,%givenName% %sn%</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>
<onchange>autoFill:homeDirectory,/home/users/%gidNumber|0-0/T%/%uid|3-%</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>
<onchange>autoFill:homeDirectory,/home/users/%gidNumber|0-0/T%/%uid|3-%</onchange>
<order>4</order>
<page>1</page>
<spacer>1</spacer>
</attribute>
<attribute id="uidNumber">
<display>UID Number</display>
<hint>Automatically determined</hint>
<order>5</order>
<page>1</page>
<presubmit>=php.GetNextNumber(/,uid)</presubmit>
</attribute>
<attribute id="sambaSID">
<display>Samba SID</display>
<helper>
<id>sidsuffix</id>
<location>side</location>
<value></value>
</helper>
<order>6</order>
<page>1</page>
<post>=php.Join(-,(%sambaSID%,%sidsuffix%))</post>
<spacer>1</spacer>
<value>=php.PickList(/,(objectClass=sambaDomain),sambaSID,%sambaSID% (%sambaDomainName%))</value>
</attribute>
<attribute id="userPassword">
<display>Password</display>
<helper>
<default>md5</default>
<display>Encryption</display>
<id>enc</id>
<location>side</location>
<value>blowfish</value>
<value>clear</value>
<value>crypt</value>
<value>ext_des</value>
<value>md5</value>
<value>md5crypt</value>
<value>sha</value>
<value>smd5</value>
<value>ssha</value>
</helper>
<icon>images/lock.png</icon>
<onchange>autoFill:sambaLMPassword,%userPassword%</onchange>
<onchange>autoFill:sambaNTPassword,%userPassword%</onchange>
<order>7</order>
<page>1</page>
<post>=php.Password(%enc%,%userPassword%)</post>
<type>password</type>
<verify>1</verify>
</attribute>
<attribute id="sambaLMPassword">
<display>LM Password</display>
<order>8</order>
<page>1</page>
<post>=php.SambaPassword(LM,%sambaLMPassword%)</post>
<type>password</type>
</attribute>
<attribute id="sambaNTPassword">
<display>NT Password</display>
<order>9</order>
<page>1</page>
<post>=php.SambaPassword(NT,%sambaNTPassword%)</post>
<spacer>1</spacer>
<type>password</type>
</attribute>
<attribute id="loginShell">
<display>Login shell</display>
<icon>images/terminal.png</icon>
<order>10</order>
<page>1</page>
<value>=php.PickList(/,(objectClass=posixAccount),loginShell,%loginShell%)</value>
</attribute>
<attribute id="gidNumber">
<display>GID Number</display>
<onchange>autoFill:homeDirectory,/home/users/%gidNumber|0-0/T%/%uid|3-%</onchange>
<order>11</order>
<page>1</page>
<value>=php.PickList(/,(objectClass=posixGroup),gidNumber,%cn%)</value>
</attribute>
<attribute id="sambaPrimaryGroupSID">
<display>Primary Group ID</display>
<helper>
<id>sidpgsuffix</id>
<location>side</location>
<value></value>
</helper>
<order>13</order>
<page>1</page>
<post>=php.Join(-,(%sambaPrimaryGroupSID%,%sidpgsuffix%))</post>
<spacer>1</spacer>
<value>=php.PickList(/,(objectClass=sambaGroupMapping),sambaSID,%sambaSID% (%cn%),sambaPrimaryGroupSID)</value>
</attribute>
<attribute id="homeDirectory">
<display>Home directory</display>
<order>14</order>
<page>1</page>
</attribute>
<attribute id="sambaAcctFlags">
<hidden>1</hidden>
<value>[U]</value>
</attribute>
</attributes>
</template>