2009-06-30 09:40:37 +00:00
|
|
|
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
|
|
|
<!DOCTYPE template SYSTEM "template.dtd">
|
2009-07-01 06:09:17 +00:00
|
|
|
|
2009-06-30 09:40:37 +00:00
|
|
|
<template>
|
|
|
|
<askcontainer>1</askcontainer>
|
2009-07-01 06:09:17 +00:00
|
|
|
<description>New Samba3 Account</description>
|
2009-07-08 10:10:57 +00:00
|
|
|
<icon>ldap-user.png</icon>
|
2009-07-01 06:09:17 +00:00
|
|
|
<invalid>0</invalid>
|
2009-06-30 09:40:37 +00:00
|
|
|
<rdn>cn</rdn>
|
2009-07-01 06:09:17 +00:00
|
|
|
<!--<regexp>^ou=People,o=.*,</regexp>-->
|
|
|
|
<title>Samba: Account</title>
|
2009-06-30 09:40:37 +00:00
|
|
|
<visible>1</visible>
|
|
|
|
|
|
|
|
<objectClasses>
|
|
|
|
<objectClass id="inetOrgPerson"></objectClass>
|
|
|
|
<objectClass id="sambaSAMAccount"></objectClass>
|
|
|
|
<objectClass id="posixAccount"></objectClass>
|
|
|
|
</objectClasses>
|
|
|
|
|
|
|
|
<attributes>
|
|
|
|
<attribute id="givenName">
|
2009-06-30 10:26:08 +00:00
|
|
|
<display>First name</display>
|
2009-07-27 09:16:12 +00:00
|
|
|
<icon>ldap-uid.png</icon>
|
2009-07-01 06:09:17 +00:00
|
|
|
<onchange>=autoFill(cn;%givenName% %sn%)</onchange>
|
2009-06-30 09:40:37 +00:00
|
|
|
<order>1</order>
|
|
|
|
<page>1</page>
|
|
|
|
</attribute>
|
|
|
|
<attribute id="sn">
|
2009-06-30 10:26:08 +00:00
|
|
|
<display>Last name</display>
|
2009-07-01 06:09:17 +00:00
|
|
|
<onchange>=autoFill(cn;%givenName% %sn%)</onchange>
|
2009-06-30 09:40:37 +00:00
|
|
|
<order>2</order>
|
|
|
|
<page>1</page>
|
|
|
|
</attribute>
|
|
|
|
<attribute id="cn">
|
|
|
|
<display>Common Name</display>
|
|
|
|
<order>3</order>
|
|
|
|
<page>1</page>
|
|
|
|
<spacer>1</spacer>
|
|
|
|
</attribute>
|
2009-07-01 06:09:17 +00:00
|
|
|
<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>
|
2010-01-29 23:58:06 +00:00
|
|
|
<value><![CDATA[=php.PickList(/;(&(objectClass=posixGroup));gidNumber;%cn%;;;;cn)]]></value>
|
2009-07-01 06:09:17 +00:00
|
|
|
</attribute>
|
2009-06-30 09:40:37 +00:00
|
|
|
<attribute id="uid">
|
2009-06-30 10:26:08 +00:00
|
|
|
<display>User ID</display>
|
2009-07-01 06:09:17 +00:00
|
|
|
<onchange>=autoFill(homeDirectory;/home/users/%gidNumber|0-0/T%/%uid|3-%)</onchange>
|
|
|
|
<order>5</order>
|
2009-06-30 09:40:37 +00:00
|
|
|
<page>1</page>
|
|
|
|
<spacer>1</spacer>
|
|
|
|
</attribute>
|
|
|
|
<attribute id="uidNumber">
|
2009-06-30 10:26:08 +00:00
|
|
|
<display>UID Number</display>
|
2009-07-01 06:09:17 +00:00
|
|
|
<order>6</order>
|
2009-06-30 09:40:37 +00:00
|
|
|
<page>1</page>
|
2009-06-30 10:46:00 +00:00
|
|
|
<readonly>1</readonly>
|
2009-07-01 06:09:17 +00:00
|
|
|
<value>=php.GetNextNumber(/;uidNumber)</value>
|
2009-06-30 09:40:37 +00:00
|
|
|
</attribute>
|
|
|
|
<attribute id="sambaSID">
|
|
|
|
<display>Samba SID</display>
|
|
|
|
<helper>
|
|
|
|
<id>sidsuffix</id>
|
2009-07-01 06:09:17 +00:00
|
|
|
<value>=php.GetNextNumber(/;uidNumber;false;;*2,+1000)</value>
|
2009-06-30 09:40:37 +00:00
|
|
|
</helper>
|
2009-07-01 06:09:17 +00:00
|
|
|
<order>7</order>
|
2009-06-30 09:40:37 +00:00
|
|
|
<page>1</page>
|
2009-07-01 06:09:17 +00:00
|
|
|
<post>=php.Join(-;%sambaSID%,%sidsuffix%)</post>
|
2009-06-30 09:40:37 +00:00
|
|
|
<spacer>1</spacer>
|
2010-01-29 23:58:06 +00:00
|
|
|
<value><![CDATA[=php.PickList(/;(&(objectClass=sambaDomain));sambaSID;%sambaSID% (%sambaDomainName%);;;;sambaDomainName)]]></value>
|
2009-06-30 09:40:37 +00:00
|
|
|
</attribute>
|
|
|
|
<attribute id="userPassword">
|
2009-06-30 10:26:08 +00:00
|
|
|
<display>Password</display>
|
2009-07-08 06:14:50 +00:00
|
|
|
<icon>lock.png</icon>
|
2009-07-01 06:09:17 +00:00
|
|
|
<onchange>=autoFill(sambaLMPassword;%userPassword%)</onchange>
|
|
|
|
<onchange>=autoFill(sambaNTPassword;%userPassword%)</onchange>
|
|
|
|
<order>8</order>
|
|
|
|
<post>=php.PasswordEncrypt(%enc%;%userPassword%)</post>
|
2009-06-30 09:40:37 +00:00
|
|
|
<page>1</page>
|
2009-07-01 06:09:17 +00:00
|
|
|
<verify>1</verify>
|
2009-06-30 10:46:00 +00:00
|
|
|
</attribute>
|
|
|
|
<attribute id="sambaLMPassword">
|
|
|
|
<display>LM Password</display>
|
2009-07-01 06:09:17 +00:00
|
|
|
<order>9</order>
|
2009-06-30 10:46:00 +00:00
|
|
|
<page>1</page>
|
2009-07-01 06:09:17 +00:00
|
|
|
<post>=php.PasswordEncrypt(LM;%sambaLMPassword%)</post>
|
|
|
|
<type>password</type>
|
2009-06-30 09:40:37 +00:00
|
|
|
</attribute>
|
|
|
|
<attribute id="sambaNTPassword">
|
|
|
|
<display>NT Password</display>
|
2009-07-01 06:09:17 +00:00
|
|
|
<order>10</order>
|
2009-06-30 10:46:00 +00:00
|
|
|
<page>1</page>
|
2009-07-01 06:09:17 +00:00
|
|
|
<post>=php.PasswordEncrypt(NT;%sambaNTPassword%)</post>
|
2009-06-30 09:40:37 +00:00
|
|
|
<spacer>1</spacer>
|
2009-07-01 06:09:17 +00:00
|
|
|
<type>password</type>
|
2009-06-30 09:40:37 +00:00
|
|
|
</attribute>
|
|
|
|
<attribute id="loginShell">
|
2009-06-30 10:26:08 +00:00
|
|
|
<display>Login shell</display>
|
2009-07-08 06:14:50 +00:00
|
|
|
<icon>terminal.png</icon>
|
2009-06-30 10:46:00 +00:00
|
|
|
<order>11</order>
|
2009-06-30 09:40:37 +00:00
|
|
|
<page>1</page>
|
2009-07-01 06:09:17 +00:00
|
|
|
<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>
|
2009-06-30 09:40:37 +00:00
|
|
|
</attribute>
|
|
|
|
<attribute id="sambaPrimaryGroupSID">
|
|
|
|
<display>Primary Group ID</display>
|
|
|
|
<helper>
|
|
|
|
<id>sidpgsuffix</id>
|
|
|
|
<value></value>
|
|
|
|
</helper>
|
2009-06-30 10:46:00 +00:00
|
|
|
<order>13</order>
|
|
|
|
<page>1</page>
|
2009-07-01 06:09:17 +00:00
|
|
|
<post>=php.Join(-;%sambaPrimaryGroupSID%,%sidpgsuffix%)</post>
|
2009-06-30 09:40:37 +00:00
|
|
|
<spacer>1</spacer>
|
2010-01-29 23:58:06 +00:00
|
|
|
<value><![CDATA[=php.PickList(/;(&(objectClass=sambaGroupMapping));sambaSID;%sambaSID% (%cn%);sambaPrimaryGroupSID;;;;cn)]]></value>
|
2009-06-30 09:40:37 +00:00
|
|
|
</attribute>
|
|
|
|
<attribute id="homeDirectory">
|
2009-06-30 10:26:08 +00:00
|
|
|
<display>Home directory</display>
|
2009-06-30 10:46:00 +00:00
|
|
|
<order>14</order>
|
2009-06-30 09:40:37 +00:00
|
|
|
<page>1</page>
|
|
|
|
</attribute>
|
|
|
|
<attribute id="sambaAcctFlags">
|
2009-06-30 10:46:00 +00:00
|
|
|
<hidden>1</hidden>
|
2009-07-01 06:09:17 +00:00
|
|
|
<value>[U]</value>
|
2009-06-30 09:40:37 +00:00
|
|
|
</attribute>
|
|
|
|
</attributes>
|
2009-07-01 06:09:17 +00:00
|
|
|
|
2009-06-30 09:40:37 +00:00
|
|
|
</template>
|