RELEASE 1.1.0
This commit is contained in:
145
templates/creation/sambaSamAccount.xml
Normal file
145
templates/creation/sambaSamAccount.xml
Normal file
@@ -0,0 +1,145 @@
|
||||
<?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>
|
||||
<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>
|
||||
<value>=php.GetNextNumber(/,uid)</value>
|
||||
<order>5</order>
|
||||
<page>1</page>
|
||||
<readonly>1</readonly>
|
||||
</attribute>
|
||||
<attribute id="sambaSID">
|
||||
<display>Samba SID</display>
|
||||
<option>=php.PickList(/,(objectClass=sambaDomain),sambaSID,%sambaSID% (%sambaDomainName%))</option>
|
||||
<helper>
|
||||
<id>sidsuffix</id>
|
||||
<option>=php.GetNextNumber(/,uid,false,,*2;+1000)</option>
|
||||
</helper>
|
||||
<post>=php.Join(-,(%sambaSID%,%sidsuffix%))</post>
|
||||
<order>6</order>
|
||||
<page>1</page>
|
||||
<spacer>1</spacer>
|
||||
</attribute>
|
||||
<attribute id="userPassword">
|
||||
<display>Password</display>
|
||||
<icon>images/lock.png</icon>
|
||||
<onchange>autoFill:sambaLMPassword,%userPassword%</onchange>
|
||||
<onchange>autoFill:sambaNTPassword,%userPassword%</onchange>
|
||||
<type>password</type>
|
||||
<verify>1</verify>
|
||||
<helper>
|
||||
<display>Encryption</display>
|
||||
<id>enc</id>
|
||||
<option>blowfish</option>
|
||||
<option>clear</option>
|
||||
<option>crypt</option>
|
||||
<option>ext_des</option>
|
||||
<option>md5</option>
|
||||
<option>md5crypt</option>
|
||||
<option>sha</option>
|
||||
<option>smd5</option>
|
||||
<option>ssha</option>
|
||||
<value>md5</value>
|
||||
</helper>
|
||||
<post>=php.Password(%enc%,%userPassword%)</post>
|
||||
<order>7</order>
|
||||
<page>1</page>
|
||||
</attribute>
|
||||
<attribute id="sambaLMPassword">
|
||||
<display>LM Password</display>
|
||||
<type>password</type>
|
||||
<post>=php.SambaPassword(LM,%sambaLMPassword%)</post>
|
||||
<order>8</order>
|
||||
<page>1</page>
|
||||
</attribute>
|
||||
<attribute id="sambaNTPassword">
|
||||
<display>NT Password</display>
|
||||
<type>password</type>
|
||||
<post>=php.SambaPassword(NT,%sambaNTPassword%)</post>
|
||||
<order>9</order>
|
||||
<page>1</page>
|
||||
<spacer>1</spacer>
|
||||
</attribute>
|
||||
<attribute id="loginShell">
|
||||
<display>Login shell</display>
|
||||
<icon>images/terminal.png</icon>
|
||||
<!-- <option>=php.PickList(/,(objectClass=posixAccount),loginShell,%loginShell%)</option> -->
|
||||
<option>/bin/sh</option>
|
||||
<option>/bin/tsh</option>
|
||||
<option>/bin/csh</option>
|
||||
<order>10</order>
|
||||
<page>1</page>
|
||||
</attribute>
|
||||
<attribute id="gidNumber">
|
||||
<display>GID Number</display>
|
||||
<onchange>autoFill:homeDirectory,/home/users/%gidNumber|0-0/T%/%uid|3-%</onchange>
|
||||
<option>=php.PickList(/,(objectClass=posixGroup),gidNumber,%cn%)</option>
|
||||
<order>11</order>
|
||||
<page>1</page>
|
||||
</attribute>
|
||||
<attribute id="sambaPrimaryGroupSID">
|
||||
<display>Primary Group ID</display>
|
||||
<option>=php.PickList(/,(objectClass=sambaGroupMapping),sambaSID,%sambaSID% (%cn%),sambaPrimaryGroupSID)</option>
|
||||
<helper>
|
||||
<id>sidpgsuffix</id>
|
||||
<value></value>
|
||||
</helper>
|
||||
<post>=php.Join(-,(%sambaPrimaryGroupSID%,%sidpgsuffix%))</post>
|
||||
<order>13</order>
|
||||
<page>1</page>
|
||||
<spacer>1</spacer>
|
||||
</attribute>
|
||||
<attribute id="homeDirectory">
|
||||
<display>Home directory</display>
|
||||
<order>14</order>
|
||||
<page>1</page>
|
||||
</attribute>
|
||||
<attribute id="sambaAcctFlags">
|
||||
<value>[U]</value>
|
||||
<hidden>1</hidden>
|
||||
</attribute>
|
||||
</attributes>
|
||||
</template>
|
Reference in New Issue
Block a user