<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE template SYSTEM "template.dtd">
<template>
<askcontainer>1</askcontainer>
<description>New Samba3 Account</description>
<icon>ldap-user.png</icon>
<invalid>0</invalid>
<rdn>cn</rdn>
<!--<regexp>^ou=People,o=.*,</regexp>-->
<title>Samba: Account</title>
<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>ldap-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>
<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="gidNumber">
<display>GID Number</display>
<onchange>=autoFill(homeDirectory;/home/users/%gidNumber|0-0/T%/%uid|3-%)</onchange>
<onchange>=autoFill(uid;%gidNumber|0-0/T%-%givenName|0-1/l%%sn/l%)</onchange>
<order>4</order>
<page>1</page>
<value><![CDATA[=php.PickList(/;(&(objectClass=posixGroup));gidNumber;%cn%;;;;cn)]]></value>
</attribute>
<attribute id="uid">
<display>User ID</display>
<onchange>=autoFill(homeDirectory;/home/users/%gidNumber|0-0/T%/%uid|3-%)</onchange>
<order>5</order>
<page>1</page>
<spacer>1</spacer>
</attribute>
<attribute id="uidNumber">
<display>UID Number</display>
<order>6</order>
<page>1</page>
<readonly>1</readonly>
<value>=php.GetNextNumber(/;uidNumber)</value>
</attribute>
<attribute id="sambaSID">
<display>Samba SID</display>
<helper>
<id>sidsuffix</id>
<value>=php.GetNextNumber(/;uidNumber;false;;*2,+1000)</value>
</helper>
<order>7</order>
<page>1</page>
<post>=php.Join(-;%sambaSID%,%sidsuffix%)</post>
<spacer>1</spacer>
<value><![CDATA[=php.PickList(/;(&(objectClass=sambaDomain));sambaSID;%sambaSID% (%sambaDomainName%);;;;sambaDomainName)]]></value>
</attribute>
<attribute id="userPassword">
<display>Password</display>
<icon>lock.png</icon>
<onchange>=autoFill(sambaLMPassword;%userPassword%)</onchange>
<onchange>=autoFill(sambaNTPassword;%userPassword%)</onchange>
<order>8</order>
<post>=php.PasswordEncrypt(%enc%;%userPassword%)</post>
<page>1</page>
<verify>1</verify>
</attribute>
<attribute id="sambaLMPassword">
<display>LM Password</display>
<order>9</order>
<page>1</page>
<post>=php.PasswordEncrypt(LM;%sambaLMPassword%)</post>
<type>password</type>
</attribute>
<attribute id="sambaNTPassword">
<display>NT Password</display>
<order>10</order>
<page>1</page>
<post>=php.PasswordEncrypt(NT;%sambaNTPassword%)</post>
<spacer>1</spacer>
<type>password</type>
</attribute>
<attribute id="loginShell">
<display>Login shell</display>
<icon>terminal.png</icon>
<order>11</order>
<page>1</page>
<type>select</type>
<!-- <value><![CDATA[=php.PickList(/;(&(objectClass=posixAccount));loginShell;%loginShell%)]]></value> -->
<value id="/bin/sh">/bin/sh</value>
<value id="/bin/csh">/bin/csh</value>
<value id="/bin/tsh">/bin/tsh</value>
</attribute>
<attribute id="sambaPrimaryGroupSID">
<display>Primary Group ID</display>
<helper>
<id>sidpgsuffix</id>
<value></value>
</helper>
<order>13</order>
<page>1</page>
<post>=php.Join(-;%sambaPrimaryGroupSID%,%sidpgsuffix%)</post>
<spacer>1</spacer>
<value><![CDATA[=php.PickList(/;(&(objectClass=sambaGroupMapping));sambaSID;%sambaSID% (%cn%);sambaPrimaryGroupSID;;;;cn)]]></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>
|