RELEASE 0.9.7.1

This commit is contained in:
Deon George
2009-06-30 19:40:37 +10:00
parent bbcd2cb3b6
commit b443271175
203 changed files with 13623 additions and 2767 deletions

View File

@@ -1,3 +1,5 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE template SYSTEM "template.dtd">
<!--This template doesnt work needs modification to the Engine.-->
<template>
<title>ldap_alias</title>
@@ -17,13 +19,13 @@
<attributes>
<attribute id="aliasedObjectName">
<display>Alias To</display>
<order>1</order>
<page>1</page>
<helper>
<display></display>
<location>side</location>
<value>=php.DrawChooserLink(aliasedObjectName,0)</value>
</helper>
<order>1</order>
<page>1</page>
</attribute>
</attributes>
</template>

View File

@@ -1,3 +1,5 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE template SYSTEM "template.dtd">
<template>
<title>courier_mail_account</title>
<!--<regexp>^ou=People,o=.*,</regexp>-->
@@ -17,8 +19,6 @@
<attribute id="uid">
<display>t_uid</display>
<icon>images/uid.png</icon>
<description></description>
<hint></hint>
<onchange>autoFill:homeDirectory,/home/users/%uid%</onchange>
<order>1</order>
<page>1</page>
@@ -26,8 +26,6 @@
<attribute id="mail">
<display>t_email</display>
<icon>images/mail.png</icon>
<description></description>
<hint></hint>
<order>2</order>
<page>1</page>
</attribute>
@@ -40,9 +38,6 @@
</attribute>
<attribute id="sn">
<display>t_last_name</display>
<description></description>
<hint></hint>
<icon></icon>
<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>
@@ -51,61 +46,53 @@
</attribute>
<attribute id="cn">
<display>Common Name</display>
<description></description>
<hint></hint>
<icon></icon>
<order>5</order>
<page>1</page>
</attribute>
<attribute id="uidNumber">
<icon>images/terminal.png</icon>
<display>t_uid_number</display>
<description></description>
<hint>t_auto_det</hint>
<default></default>
<presubmit>=php.GetNextNumber(/,uid)</presubmit>
<icon>images/terminal.png</icon>
<order>6</order>
<page>1</page>
<hidden>0</hidden>
<presubmit>=php.GetNextNumber(/,uid)</presubmit>
</attribute>
<attribute id="gidNumber">
<display>t_gid_number</display>
<description></description>
<hint></hint>
<default>=php.PickList(/,(objectClass=posixGroup),gidNumber,%cn%)</default>
<onchange>autoFill:homeDirectory,/home/users/%gidNumber|0-0/T%/%uid|3-%</onchange>
<order>7</order>
<page>1</page>
<value>=php.PickList(/,(objectClass=posixGroup),gidNumber,%cn%)</value>
</attribute>
<attribute id="homeDirectory">
<display>t_home_dir</display>
<description></description>
<hint></hint>
<order>8</order>
<page>1</page>
<spacer>1</spacer>
</attribute>
<attribute id="userPassword">
<display>t_password</display>
<helper>
<default>md5</default>
<display>t_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>
<description></description>
<hint></hint>
<default></default>
<order>9</order>
<page>1</page>
<post>=php.Password(%enc%,%userPassword%)</post>
<type>password</type>
<verify>1</verify>
<helper>
<id>enc</id>
<display>t_encryption</display>
<location>side</location>
<description></description>
<hint></hint>
<value>clear</value>
<value>md5</value>
</helper>
<post>=php.Password(%enc%,%userPassword%)</post>
</attribute>
</attributes>
</template>

View File

@@ -1,3 +1,5 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE template SYSTEM "template.dtd">
<template>
<title>courier_mail_alias</title>
<!--<regexp>^ou=People,o=.*,</regexp>-->

View File

@@ -1,5 +1,5 @@
<?php
// $Header: /cvsroot/phpldapadmin/phpldapadmin/templates/creation/custom.php,v 1.41 2005/09/25 04:48:21 wurley Exp $
// $Header: /cvsroot/phpldapadmin/phpldapadmin/templates/creation/custom.php,v 1.41.2.2 2005/10/22 04:49:28 wurley Exp $
// Common to all templates
$rdn = isset( $_POST['rdn'] ) ? $_POST['rdn'] : null;
@@ -10,12 +10,12 @@ $ldapserver = $ldapservers->Instance($server_id);
// Unique to this template
$step = isset( $_POST['step'] ) ? $_POST['step'] : 1;
check_server_id( $server_id ) or pla_error( $lang['bad_server_id'] );
have_auth_info( $server_id ) or pla_error( $lang['not_enough_login_info'] );
if( ! $ldapserver->haveAuthInfo())
pla_error( $lang['not_enough_login_info'] );
if( $step == 1 )
{
$oclasses = get_schema_objectClasses( $ldapserver );
$oclasses = $ldapserver->SchemaObjectClasses();
if( ! $oclasses || ! is_array( $oclasses ) )
pla_error( "Unable to retrieve the schema from your LDAP server. Cannot continue with creation." );
?>
@@ -52,7 +52,7 @@ if( $step == 1 )
</td>
</tr>
<?php if( show_hints() ) { ?>
<?php if ($config->GetValue('appearance','show_hints')) { ?>
<tr>
<td></td>
<td>
@@ -88,11 +88,11 @@ if( $step == 2 )
$dn = trim( $container ) ? $rdn . ',' . $container : $rdn;
// incrementally build up the all_attrs and required_attrs arrays
$schema_oclasses = get_schema_objectclasses( $ldapserver );
$schema_oclasses = $ldapserver->SchemaObjectClasses();
$required_attrs = array();
$all_attrs = array();
foreach( $oclasses as $oclass_name ) {
$oclass = get_schema_objectclass( $ldapserver, $oclass_name );
$oclass = $ldapserver->getSchemaObjectClass($oclass_name);
if( $oclass ) {
$required_attrs = array_merge( $required_attrs,
$oclass->getMustAttrNames( $schema_oclasses ) );
@@ -287,7 +287,7 @@ function remove_aliases( &$attribute_list, $ldapserver )
continue;
$attr_name2 = $attribute_list[ $k ];
//echo "Comparing $attr_name1 and $attr_name2<br>";
$attr1 = get_schema_attribute( $ldapserver, $attr_name1 );
$attr1 = $ldapserver->getSchemaAttribute($attr_name1);
if( null == $attr1 )
continue;
if( $attr1->isAliasFor( $attr_name2 ) ) {

View File

@@ -1,5 +1,5 @@
<?php
// $Header: /cvsroot/phpldapadmin/phpldapadmin/templates/creation/new_address_template.php,v 1.13 2004/12/20 14:12:33 uugdave Exp $
// $Header: /cvsroot/phpldapadmin/phpldapadmin/templates/creation/Attic/new_address_template.php,v 1.13 2004/12/20 14:12:33 uugdave Exp $
// customize this to your needs

View File

@@ -1,5 +1,5 @@
<?php
// $Header: /cvsroot/phpldapadmin/phpldapadmin/templates/creation/new_dns_entry.php,v 1.10 2005/03/05 06:27:07 wurley Exp $
// $Header: /cvsroot/phpldapadmin/phpldapadmin/templates/creation/Attic/new_dns_entry.php,v 1.10 2005/03/05 06:27:07 wurley Exp $
// Common to all templates
$container = $_POST['container'];

View File

@@ -1,5 +1,5 @@
<?php
// $Header: /cvsroot/phpldapadmin/phpldapadmin/templates/creation/new_mozillaOrgPerson_template.php,v 1.2 2004/10/28 13:37:40 uugdave Exp $
// $Header: /cvsroot/phpldapadmin/phpldapadmin/templates/creation/Attic/new_mozillaOrgPerson_template.php,v 1.2 2004/10/28 13:37:40 uugdave Exp $
/**
* "Create new" template for Mozilla Address book entry (mozillaOrgPerson)

View File

@@ -1,5 +1,5 @@
<?php
// $Header: /cvsroot/phpldapadmin/phpldapadmin/templates/creation/new_nt_machine.php,v 1.14 2005/03/05 06:27:07 wurley Exp $
// $Header: /cvsroot/phpldapadmin/phpldapadmin/templates/creation/Attic/new_nt_machine.php,v 1.14 2005/03/05 06:27:07 wurley Exp $
// Common to all templates

View File

@@ -1,5 +1,5 @@
<?php
// $Header: /cvsroot/phpldapadmin/phpldapadmin/templates/creation/new_ou_template.php,v 1.12 2005/03/05 06:27:07 wurley Exp $
// $Header: /cvsroot/phpldapadmin/phpldapadmin/templates/creation/Attic/new_ou_template.php,v 1.12 2005/03/05 06:27:07 wurley Exp $
// Common to all templates
$container = $_POST['container'];

View File

@@ -1,5 +1,5 @@
<?php
// $Header: /cvsroot/phpldapadmin/phpldapadmin/templates/creation/new_posix_group_template.php,v 1.10 2005/03/05 06:27:07 wurley Exp $
// $Header: /cvsroot/phpldapadmin/phpldapadmin/templates/creation/Attic/new_posix_group_template.php,v 1.10 2005/03/05 06:27:07 wurley Exp $
// Common to all templates
$container = $_POST['container'];

View File

@@ -1,5 +1,5 @@
<?php
// $Header: /cvsroot/phpldapadmin/phpldapadmin/templates/creation/new_postfix_account_template.php,v 1.2 2004/10/28 13:37:40 uugdave Exp $
// $Header: /cvsroot/phpldapadmin/phpldapadmin/templates/creation/Attic/new_postfix_account_template.php,v 1.2 2004/10/28 13:37:40 uugdave Exp $
// customize this to your needs

View File

@@ -1,5 +1,5 @@
<?php
// $Header: /cvsroot/phpldapadmin/phpldapadmin/templates/creation/new_security_object_template.php,v 1.5 2005/03/05 06:27:07 wurley Exp $
// $Header: /cvsroot/phpldapadmin/phpldapadmin/templates/creation/Attic/new_security_object_template.php,v 1.5 2005/03/05 06:27:07 wurley Exp $
// customize this to your needs
$default_container = "ou=server";

View File

@@ -1,5 +1,5 @@
<?php
// $Header: /cvsroot/phpldapadmin/phpldapadmin/templates/creation/new_smb3_nt_machine.php,v 1.8 2005/03/05 06:27:07 wurley Exp $
// $Header: /cvsroot/phpldapadmin/phpldapadmin/templates/creation/Attic/new_smb3_nt_machine.php,v 1.8 2005/03/05 06:27:07 wurley Exp $
// Common to all templates
$container = $_POST['container'];

View File

@@ -1,5 +1,5 @@
<?php
// $Header: /cvsroot/phpldapadmin/phpldapadmin/templates/creation/new_smb3_user_template.php,v 1.25 2005/09/23 13:43:55 wurley Exp $
// $Header: /cvsroot/phpldapadmin/phpldapadmin/templates/creation/Attic/new_smb3_user_template.php,v 1.25 2005/09/23 13:43:55 wurley Exp $
$samba3_domains = get_samba3_domains();

View File

@@ -1,5 +1,5 @@
<?php
// $Header: /cvsroot/phpldapadmin/phpldapadmin/templates/creation/new_smbgroup_template.php,v 1.14 2005/03/05 06:27:07 wurley Exp $
// $Header: /cvsroot/phpldapadmin/phpldapadmin/templates/creation/Attic/new_smbgroup_template.php,v 1.14 2005/03/05 06:27:07 wurley Exp $
// Common to all templates
$rdn = isset( $_POST['rdn'] ) ? $_POST['rdn'] : null;

View File

@@ -1,5 +1,5 @@
<?php
// $Header: /cvsroot/phpldapadmin/phpldapadmin/templates/creation/new_smbuser_template.php,v 1.18 2005/03/05 06:27:07 wurley Exp $
// $Header: /cvsroot/phpldapadmin/phpldapadmin/templates/creation/Attic/new_smbuser_template.php,v 1.18 2005/03/05 06:27:07 wurley Exp $
$default_container = "ou=Users";
$default_home = "/home";

View File

@@ -1,5 +1,5 @@
<?php
// $Header: /cvsroot/phpldapadmin/phpldapadmin/templates/creation/new_user_template.php,v 1.26 2005/03/05 06:27:07 wurley Exp $
// $Header: /cvsroot/phpldapadmin/phpldapadmin/templates/creation/Attic/new_user_template.php,v 1.26 2005/03/05 06:27:07 wurley Exp $
/*
* TODO Add a check: If the server is configured to use auto_uid_numbers AND the

View File

@@ -1,3 +1,5 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE template SYSTEM "template.dtd">
<template>
<title>dns_entry</title>
<!--<regexp>^ou=People,o=.*,</regexp>-->
@@ -14,10 +16,10 @@
<attributes>
<attribute id="domainComponent">
<display>DC Name</display>
<description>Domain Component</description>
<override>dc</override>
<display>DC Name</display>
<order>1</order>
<override>dc</override>
<page>1</page>
</attribute>
<attribute id="associatedDomain">

View File

@@ -1,9 +1,11 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE template SYSTEM "template.dtd">
<template>
<title>Example entry</title>
<regexp>^$</regexp>
<icon>images/star.png</icon>
<description>This is the description</description>
<rdn>o</rdn>
<regexp>^$</regexp>
<visible>0</visible>
<objectClasses>
@@ -12,25 +14,22 @@
<attributes>
<attribute id="attribute1">
<display>Attribute 1</display>
<description>This is the attribute description</description>
<default></default>
<display>Attribute 1</display>
<hint>This is an example</hint>
<icon>images/user.png</icon>
<order>1</order>
<page>1</page>
<icon>images/user.png</icon>
</attribute>
<attribute id="attribute2">
<display>Attribute 2</display>
<description>This is the attribute description</description>
<default></default>
<display>Attribute 2</display>
<order>2</order>
<page>2</page>
</attribute>
<attribute id="attribute3">
<display>Attribute 3</display>
<description>This is the attribute description</description>
<default></default>
<display>Attribute 3</display>
<order>1</order>
<page>2</page>
</attribute>

View File

@@ -1,3 +1,5 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE template SYSTEM "template.dtd">
<template>
<title>address_book_inet</title>
<!--<regexp>^ou=People,o=.*,</regexp>-->
@@ -14,8 +16,6 @@
<attributes>
<attribute id="givenName">
<display>t_first_name</display>
<description></description>
<hint></hint>
<icon>images/uid.png</icon>
<onchange>autoFill:cn,%givenName% %sn%</onchange>
<order>1</order>
@@ -23,85 +23,61 @@
</attribute>
<attribute id="sn">
<display>t_last_name</display>
<description></description>
<hint></hint>
<icon></icon>
<onchange>autoFill:cn,%givenName% %sn%</onchange>
<order>2</order>
<page>1</page>
</attribute>
<attribute id="cn">
<display>Common Name</display>
<description></description>
<hint></hint>
<icon></icon>
<order>3</order>
<page>1</page>
<spacer>1</spacer>
</attribute>
<attribute id="o">
<display>t_organization</display>
<description></description>
<hint></hint>
<order>4</order>
<page>1</page>
</attribute>
<attribute id="street">
<display>t_street</display>
<description></description>
<hint></hint>
<icon>images/mail.png</icon>
<order>4</order>
<page>1</page>
<icon>images/mail.png</icon>
</attribute>
<attribute id="l">
<display>t_city</display>
<description></description>
<hint></hint>
<order>5</order>
<page>1</page>
</attribute>
<attribute id="st">
<display>t_state</display>
<description></description>
<hint></hint>
<order>6</order>
<page>1</page>
</attribute>
<attribute id="postalCode">
<display>t_postal_code</display>
<description></description>
<hint></hint>
<order>7</order>
<page>1</page>
<spacer>1</spacer>
</attribute>
<attribute id="telephoneNumber">
<display>t_work_phone</display>
<description></description>
<hint></hint>
<icon>images/phone.png</icon>
<order>8</order>
<page>1</page>
<icon>images/phone.png</icon>
</attribute>
<attribute id="facsimileTelephoneNumber">
<display>t_fax</display>
<description></description>
<hint></hint>
<order>9</order>
<page>1</page>
</attribute>
<attribute id="mobile">
<display>t_mobile</display>
<description></description>
<hint></hint>
<order>9</order>
<page>1</page>
</attribute>
<attribute id="mail">
<display>t_email</display>
<description></description>
<hint></hint>
<order>10</order>
<page>1</page>
</attribute>

View File

@@ -1,3 +1,5 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE template SYSTEM "template.dtd">
<template>
<title>kolab_user</title>
<!--<regexp>^ou=People,o=.*,</regexp>-->
@@ -34,25 +36,33 @@
</attribute>
<attribute id="userPassword">
<display>t_password</display>
<helper>
<default>md5</default>
<display>t_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>
<order>5</order>
<post>=php.Password(%enc%,%userPassword%)</post>
<spacer>1</spacer>
<type>password</type>
<verify>1</verify>
<helper>
<id>enc</id>
<display>t_encryption</display>
<location>side</location>
<value>clear</value>
<value>md5</value>
</helper>
<post>=php.Password(%enc%,%userPassword%)</post>
</attribute>
<attribute id="title">
<display>Title</display>
<order>6</order>
<icon>images/ou.png</icon>
<order>6</order>
</attribute>
<attribute id="alias">
<display>Alias</display>
@@ -74,8 +84,8 @@
<attribute id="street">
<display>t_address</display>
<order>11</order>
<icon>images/mail.png</icon>
<order>11</order>
</attribute>
<attribute id="postOfficeBox">
<display>Post Box</display>
@@ -100,8 +110,8 @@
</attribute>
<attribute id="telephoneNumber">
<display>t_work_phone</display>
<order>17</order>
<icon>images/phone.png</icon>
<order>17</order>
</attribute>
<attribute id="facsimileTelephoneNumber">
<display>t_fax</display>

View File

@@ -1,5 +1,5 @@
<?php
// $Header: /cvsroot/phpldapadmin/phpldapadmin/templates/modification/default.php,v 1.84 2005/09/25 04:48:21 wurley Exp $
// $Header: /cvsroot/phpldapadmin/phpldapadmin/templates/modification/Attic/default.php,v 1.84.2.1 2005/10/09 06:14:50 wurley Exp $
/*
@@ -472,7 +472,7 @@ foreach( $attrs as $attr => $vals ) {
name="old_enc_type"
value="<?php echo ($enc_type==''?'clear':$enc_type); ?>" />
<?php if( obfuscate_password_display() || is_null( $enc_type ) ) {
<?php if( obfuscate_password_display( $enc_type ) ) {
echo htmlspecialchars( preg_replace( "/./", "*", $user_password ) );
} else {
echo htmlspecialchars( $user_password );
@@ -480,7 +480,12 @@ foreach( $attrs as $attr => $vals ) {
?>
<br />
<input style="width: 260px"
type="password"
type="<?php
if( obfuscate_password_display( $enc_type ) )
echo 'password';
else
echo 'text';
?>"
name="new_values[userpassword]"
value="<?php echo htmlspecialchars( $user_password ); ?>" />

View File

@@ -1,5 +1,5 @@
<?php
// $Header: /cvsroot/phpldapadmin/phpldapadmin/templates/modification/group_of_names.php,v 1.9 2005/03/05 06:27:08 wurley Exp $
// $Header: /cvsroot/phpldapadmin/phpldapadmin/templates/modification/Attic/group_of_names.php,v 1.9 2005/03/05 06:27:08 wurley Exp $
/*

View File

@@ -1,5 +1,5 @@
<?php
// $Header: /cvsroot/phpldapadmin/phpldapadmin/templates/modification/user.php,v 1.5 2005/02/26 12:33:49 wurley Exp $
// $Header: /cvsroot/phpldapadmin/phpldapadmin/templates/modification/Attic/user.php,v 1.5 2005/02/26 12:33:49 wurley Exp $
/*

View File

@@ -1,3 +1,5 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE template SYSTEM "template.dtd">
<template>
<title>address_book_moz</title>
<!--<regexp>^ou=People,o=.*,</regexp>-->
@@ -6,7 +8,6 @@
<askcontainer>1</askcontainer>
<rdn>cn</rdn>
<visible>1</visible>
<invalid>1</invalid>
<objectClasses>
<objectClass id="inetOrgPerson"></objectClass>
@@ -36,8 +37,8 @@
</attribute>
<attribute id="mail">
<display>t_email</display>
<order>5</order>
<icon>images/phone.png</icon>
<order>5</order>
</attribute>
<attribute id="mozillaSecondEmail">
<display>Second email</display>
@@ -46,8 +47,8 @@
</attribute>
<attribute id="telephoneNumber">
<display>t_work_phone</display>
<order>7</order>
<icon>images/phone.png</icon>
<order>7</order>
</attribute>
<attribute id="homePhone">
<display>Home</display>
@@ -68,72 +69,72 @@
</attribute>
<attribute id="homePostalAddress">
<display>Address</display>
<order>11</order>
<order>12</order>
</attribute>
<attribute id="mozillaHomePostalAddress2">
<display>Address 2</display>
<order>11</order>
<order>13</order>
</attribute>
<attribute id="mozillaHomeLocalityName">
<display>City</display>
<order>11</order>
<order>14</order>
</attribute>
<attribute id="mozillaHomeState">
<display>State</display>
<order>11</order>
<order>15</order>
</attribute>
<attribute id="mozillaHomePostalCode">
<display>ZIP</display>
<order>11</order>
<order>16</order>
</attribute>
<attribute id="mozillaHomeCountryName">
<display>Country</display>
<order>11</order>
<order>17</order>
</attribute>
<attribute id="mozillaHomeUrl">
<display>Web page</display>
<order>11</order>
<order>18</order>
<spacer>1</spacer>
</attribute>
<attribute id="title">
<display>Title</display>
<order>12</order>
<order>19</order>
</attribute>
<attribute id="ou">
<display>Department</display>
<order>12</order>
<order>20</order>
</attribute>
<attribute id="o">
<display>Organization</display>
<order>12</order>
<order>21</order>
</attribute>
<attribute id="postalAddress">
<display>Address</display>
<order>12</order>
<order>22</order>
</attribute>
<attribute id="mozillaPostalAddress2">
<display>Address 2</display>
<order>12</order>
<order>23</order>
</attribute>
<attribute id="l">
<display>City</display>
<order>12</order>
<order>24</order>
</attribute>
<attribute id="st">
<display>State/Province</display>
<order>12</order>
<order>25</order>
</attribute>
<attribute id="postalCode">
<display>ZIP</display>
<order>12</order>
<order>26</order>
</attribute>
<attribute id="c">
<display>Country</display>
<order>12</order>
<order>27</order>
</attribute>
<attribute id="mozillaWorkUrl">
<display>Web page</display>
<order>12</order>
<order>28</order>
</attribute>
</attributes>
</template>

View File

@@ -1,3 +1,5 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE template SYSTEM "template.dtd">
<template>
<title>organizational_role</title>
<!--<regexp>^ou=People,o=.*,</regexp>-->
@@ -19,8 +21,8 @@
</attribute>
<attribute id="telephoneNumber">
<display>t_work_phone</display>
<order>2</order>
<icon>images/phone.png</icon>
<order>2</order>
</attribute>
<attribute id="facsimileTelephoneNumber">
<display>t_fax</display>
@@ -30,22 +32,22 @@
<attribute id="description">
<display>Comments</display>
<order>4</order>
<icon>images/light.png</icon>
<order>4</order>
<spacer>1</spacer>
</attribute>
<attribute id="roleOccupant">
<display>Occupant</display>
<order>5</order>
<icon>images/object.png</icon>
<order>5</order>
<spacer>1</spacer>
</attribute>
<attribute id="street">
<display>Street Address</display>
<order>6</order>
<icon>images/mail.png</icon>
<order>6</order>
</attribute>
<attribute id="l">
<display>t_city</display>
@@ -63,8 +65,8 @@
<attribute id="postalAddress">
<display>Postal Address</display>
<order>10</order>
<icon>images/mail.png</icon>
<order>10</order>
<spacer>1</spacer>
</attribute>
<attribute id="registeredAddress">

View File

@@ -1,3 +1,5 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE template SYSTEM "template.dtd">
<template>
<title>organizational_unit</title>
<!-- <regexp>^o=.*,</regexp> -->
@@ -13,8 +15,8 @@
<attributes>
<attribute id="ou">
<display>organizational_unit</display>
<description>organizational_unit</description>
<display>organizational_unit</display>
<hint>don't include "ou="</hint>
<order>1</order>
<page>1</page>

View File

@@ -1,3 +1,5 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE template SYSTEM "template.dtd">
<template>
<title>user_account</title>
<!--<regexp>^ou=People,o=.*,</regexp>-->
@@ -15,8 +17,6 @@
<attributes>
<attribute id="givenName">
<display>t_first_name</display>
<description></description>
<hint></hint>
<icon>images/uid.png</icon>
<onchange>autoFill:cn,%givenName% %sn%</onchange>
<order>1</order>
@@ -24,9 +24,6 @@
</attribute>
<attribute id="sn">
<display>t_last_name</display>
<description></description>
<hint></hint>
<icon></icon>
<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>
@@ -35,16 +32,11 @@
</attribute>
<attribute id="cn">
<display>Common Name</display>
<description></description>
<hint></hint>
<icon></icon>
<order>3</order>
<page>1</page>
</attribute>
<attribute id="uid">
<display>t_uid</display>
<description></description>
<hint></hint>
<onchange>autoFill:homeDirectory,/home/users/%gidNumber|0-0/T%/%uid|3-%</onchange>
<order>4</order>
<page>1</page>
@@ -52,60 +44,54 @@
</attribute>
<attribute id="homeDirectory">
<display>t_home_dir</display>
<description></description>
<hint></hint>
<order>8</order>
<page>1</page>
</attribute>
<attribute id="uidNumber">
<icon>images/terminal.png</icon>
<display>t_uid_number</display>
<description></description>
<hint>t_auto_det</hint>
<default></default>
<presubmit>=php.GetNextNumber(/,uid)</presubmit>
<icon>images/terminal.png</icon>
<order>6</order>
<page>1</page>
<hidden>0</hidden>
<presubmit>=php.GetNextNumber(/,uid)</presubmit>
</attribute>
<attribute id="gidNumber">
<display>t_gid_number</display>
<description></description>
<hint></hint>
<default>=php.PickList(/,(objectClass=posixGroup),gidNumber,%cn%)</default>
<onchange>autoFill:homeDirectory,/home/users/%gidNumber|0-0/T%/%uid|3-%</onchange>
<order>7</order>
<page>1</page>
<value>=php.PickList(/,(objectClass=posixGroup),gidNumber,%cn%)</value>
</attribute>
<attribute id="loginShell">
<display>t_login_shell</display>
<description></description>
<hint></hint>
<default>=php.PickList(/,(objectClass=posixAccount),loginShell,%loginShell%)</default>
<order>9</order>
<page>1</page>
<value>=php.PickList(/,(objectClass=posixAccount),loginShell,%loginShell%)</value>
</attribute>
<attribute id="userPassword">
<display>t_password</display>
<helper>
<default>md5</default>
<display>t_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>
<description></description>
<hint></hint>
<default></default>
<order>5</order>
<page>1</page>
<post>=php.Password(%enc%,%userPassword%)</post>
<spacer>1</spacer>
<type>password</type>
<verify>1</verify>
<helper>
<id>enc</id>
<display>t_encryption</display>
<location>side</location>
<description></description>
<hint></hint>
<value>clear</value>
<value>md5</value>
</helper>
<post>=php.Password(%enc%,%userPassword%)</post>
</attribute>
</attributes>
</template>

View File

@@ -1,3 +1,5 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE template SYSTEM "template.dtd">
<template>
<title>posix_group</title>
<!-- <regexp>^ou=.*,</regexp> -->
@@ -14,35 +16,27 @@
<attributes>
<attribute id="cn">
<display>t_group</display>
<description></description>
<hint></hint>
<icon></icon>
<order>1</order>
<page>1</page>
</attribute>
<attribute id="gidNumber">
<display>t_gid_number</display>
<description></description>
<hint>t_auto_det</hint>
<presubmit>=php.GetNextNumber(/,gid)</presubmit>
<order>2</order>
<page>1</page>
<hidden>0</hidden>
<presubmit>=php.GetNextNumber(/,gid)</presubmit>
<spacer>1</spacer>
</attribute>
<attribute id="memberUid">
<array>10</array>
<display>users</display>
<description></description>
<hint></hint>
<helper>
<location>side</location>
<!-- <value>=php.DrawChooserLink(memberUid,0)</value> -->
</helper>
<hidden>0</hidden>
<order>3</order>
<page>1</page>
<hidden>0</hidden>
<array>10</array>
<helper>
<display></display>
<location>side</location>
<!-- <value>=php.DrawChooserLink(memberUid,0)</value> -->
</helper>
</attribute>
</attributes>
</template>

30
templates/sambaDomain.xml Normal file
View File

@@ -0,0 +1,30 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE template SYSTEM "template.dtd">
<template>
<title>Samba Domain</title>
<!--<regexp>^ou=People,o=.*,</regexp>-->
<icon>images/dc.png</icon>
<description>New Samba Domain</description>
<askcontainer>1</askcontainer>
<rdn>sambaDomainName</rdn>
<visible>1</visible>
<objectClasses>
<objectClass id="sambaDomain"></objectClass>
</objectClasses>
<attributes>
<attribute id="sambaDomainName">
<display>Samba Domain Name</display>
<order>1</order>
<page>1</page>
</attribute>
<attribute id="sambaSID">
<display>Samba SID</display>
<hint>Samba SID is in the format S-1-5-21-x-y-z</hint>
<order>2</order>
<page>1</page>
<value>S-1-5-21-</value>
</attribute>
</attributes>
</template>

View File

@@ -0,0 +1,70 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE template SYSTEM "template.dtd">
<template>
<title>Samba3 Group Mapping</title>
<!-- <regexp>^ou=.*,</regexp> -->
<icon>images/ou.png</icon>
<description>New Samba3 Group Mapping</description>
<askcontainer>1</askcontainer>
<rdn>cn</rdn>
<visible>1</visible>
<objectClasses>
<objectClass id="posixGroup"></objectClass>
<objectClass id="sambaGroupMapping"></objectClass>
</objectClasses>
<attributes>
<attribute id="cn">
<display>t_group</display>
<order>1</order>
<page>1</page>
</attribute>
<attribute id="displayName">
<display>Windows Name</display>
<order>2</order>
<page>1</page>
</attribute>
<attribute id="gidNumber">
<display>t_gid_number</display>
<hint>t_auto_det</hint>
<order>3</order>
<page>1</page>
<presubmit>=php.GetNextNumber(/,gid)</presubmit>
<spacer>1</spacer>
</attribute>
<attribute id="sambaSID">
<display>Samba SID</display>
<helper>
<id>sidsuffix</id>
<location>side</location>
<value></value>
</helper>
<order>4</order>
<page>1</page>
<post>=php.Join(-,(%sambaSID%,%sidsuffix%))</post>
<value>=php.PickList(/,(objectClass=sambaDomain),sambaSID,%sambaSID% (%sambaDomainName%))</value>
</attribute>
<attribute id="sambaGroupType">
<default>2</default>
<display>Samba Group Type</display>
<order>5</order>
<page>1</page>
<spacer>1</spacer>
<value id="2">Domain Group</value>
<value id="4">Local Group</value>
<value id="5">Well-known Group</value>
</attribute>
<attribute id="memberUid">
<array>10</array>
<display>users</display>
<helper>
<location>side</location>
<!-- <value>=php.DrawChooserLink(memberUid,0)</value> -->
</helper>
<hidden>0</hidden>
<order>10</order>
<page>1</page>
</attribute>
</attributes>
</template>

View File

@@ -0,0 +1,65 @@
<?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>t_uid_number</display>
<hint>t_auto_det</hint>
<order>2</order>
<page>1</page>
<presubmit>=php.GetNextNumber(/,uid)</presubmit>
</attribute>
<attribute id="gidNumber">
<display>t_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>

View File

@@ -0,0 +1,152 @@
<?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>t_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>t_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>t_uid</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>t_uid_number</display>
<hint>t_auto_det</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>t_password</display>
<helper>
<default>md5</default>
<display>t_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>t_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>t_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="gidNumber">
<display>t_gid_number</display>
<onchange>autoFill:homeDirectory,/home/users/%gidNumber|0-0/T%/%uid|3-%</onchange>
<order>12</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>t_home_dir</display>
<order>14</order>
<page>1</page>
</attribute>
<attribute id="sambaAcctFlags">
<hidden>1</hidden>
<value>[U]</value>
</attribute>
</attributes>
</template>

View File

@@ -1,3 +1,5 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE template SYSTEM "template.dtd">
<template>
<title>sendmail_alias</title>
<!--<regexp>^ou=People,o=.*,</regexp>-->
@@ -32,9 +34,9 @@
</attribute>
<attribute id="sendmailMTAAliasValue">
<display>Recipient Addresses</display>
<type>textarea</type>
<order>4</order>
<page>1</page>
<type>textarea</type>
</attribute>
<attribute id="sendmailMTAAliasGrouping">
<default>aliases</default>

View File

@@ -1,3 +1,5 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE template SYSTEM "template.dtd">
<template>
<title>sendmail_domain</title>
<!--<regexp>^ou=People,o=.*,</regexp>-->

View File

@@ -1,3 +1,5 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE template SYSTEM "template.dtd">
<template>
<title>sendmail_cluster</title>
<!--<regexp>^ou=People,o=.*,</regexp>-->

View File

@@ -1,3 +1,5 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE template SYSTEM "template.dtd">
<!--This template doesnt work needs modification to the Engine.-->
<template>
<title>sendmail_relays</title>
@@ -30,17 +32,16 @@
<display>Host/Network/Address</display>
<order>3</order>
<page>1</page>
<default></default>
<default>RELAY: Allow host/network/address to relay</default>
<default>OK: Accept local mail but disallow relay</default>
<default>REJECT: Reject messages</default>
<default>DISCARD: Discard messages</default>
<default>SKIP: Apply default action to messages</default>
<default>ERROR: Reject message with custom error</default>
<value>RELAY: Allow host/network/address to relay</value>
<value>OK: Accept local mail but disallow relay</value>
<value>REJECT: Reject messages</value>
<value>DISCARD: Discard messages</value>
<value>SKIP: Apply default action to messages</value>
<value>ERROR: Reject message with custom error</value>
</attribute>
<attribute id="sendmailMTAMapName">
<default>access</default>
<hidden>1</hidden>
<value>access</value>
</attribute>
</attributes>
</template>

View File

@@ -1,3 +1,5 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE template SYSTEM "template.dtd">
<template>
<title>sendmail_domain</title>
<!--<regexp>^ou=People,o=.*,</regexp>-->
@@ -31,8 +33,8 @@
<page>1</page>
</attribute>
<attribute id="sendmailMTAClassName">
<default>VirtHost</default>
<hidden>1</hidden>
<value>VirtHost</value>
</attribute>
</attributes>
</template>

View File

@@ -1,3 +1,5 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE template SYSTEM "template.dtd">
<template>
<title>sendmail_virt_users</title>
<!--<regexp>^ou=People,o=.*,</regexp>-->
@@ -34,13 +36,13 @@
<attribute id="sendmailMTAMapValue">
<display>Recipient Addresses</display>
<hint>use %1 to map user name port of address</hint>
<type>textarea</type>
<order>4</order>
<page>1</page>
<type>textarea</type>
</attribute>
<attribute id="sendmailMTAMapName">
<default>virtuser</default>
<hidden>1</hidden>
<value>virtuser</value>
</attribute>
</attributes>
</template>

View File

@@ -1,3 +1,5 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE template SYSTEM "template.dtd">
<template>
<title>simple_sec_object</title>
<!--<regexp>^ou=People,o=.*,</regexp>-->
@@ -15,34 +17,34 @@
<attributes>
<attribute id="userid">
<display>t_user_name</display>
<description></description>
<hint></hint>
<icon>images/uid.png</icon>
<spacer>1</spacer>
<order>1</order>
<page>1</page>
<spacer>1</spacer>
</attribute>
<attribute id="userPassword">
<display>t_password</display>
<helper>
<default>md5</default>
<display>t_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>
<description></description>
<hint></hint>
<default></default>
<order>5</order>
<page>1</page>
<post>=php.Password(%enc%,%userPassword%)</post>
<type>password</type>
<verify>1</verify>
<helper>
<id>enc</id>
<display>t_encryption</display>
<location>side</location>
<description></description>
<hint></hint>
<default>md5</default>
<value>clear</value>
<value>md5</value>
</helper>
<post>=php.Password(%enc%,%userPassword%)</post>
</attribute>
</attributes>
</template>

67
templates/template.dtd Normal file
View File

@@ -0,0 +1,67 @@
<!-- ==========================================================================
This is the DTD for phpLDAPAdmin Templates (draft).
Copyright (c) 2005 <adezorzi AT rhx DOT it>
temporary URI for the DTD: http://www.phamm.org/DTD/pla-template-strict.dtd
Validate your templates here: http://www.stg.brown.edu/service/xmlvalid/
========================================================================== -->
<!-- Unused -->
<!ENTITY % Boolean "(0 | 1)">
<!-- ================================================================ -->
<!-- Template Definition -->
<!ELEMENT template (title,regexp?,icon?,description?,askcontainer?,rdn?,
visible?,invalid?,objectClasses,attributes)>
<!-- ObjectClasses Definition -->
<!ELEMENT objectClasses (objectClass+)>
<!ELEMENT objectClass EMPTY>
<!ATTLIST objectClass id CDATA #REQUIRED>
<!-- Attributes Definition -->
<!ELEMENT attributes (attribute*)>
<!ELEMENT attribute (array?, default?, description?, display?, helper?, hidden?, hint?,
icon?, onchange*, order?, override?, page?, post?,
presubmit?, spacer*, type?, value*, verify?)>
<!ATTLIST attribute id CDATA #REQUIRED>
<!-- helper -->
<!ELEMENT helper (default?,display?,hint?,id?,location?,value*)>
<!-- ================================================================ -->
<!-- Common Parameters -->
<!ELEMENT icon (#PCDATA)>
<!ELEMENT hint (#PCDATA)>
<!ELEMENT description (#PCDATA)>
<!ELEMENT display (#PCDATA)>
<!-- Header Parameters -->
<!ELEMENT title (#PCDATA)>
<!ELEMENT regexp (#PCDATA)>
<!ELEMENT askcontainer (#PCDATA)>
<!ELEMENT rdn (#PCDATA)>
<!ELEMENT visible (#PCDATA)>
<!ELEMENT invalid (#PCDATA)>
<!-- Attribute Parameters -->
<!ELEMENT array (#PCDATA)>
<!ELEMENT default (#PCDATA)>
<!ELEMENT hidden (#PCDATA)>
<!ELEMENT onchange (#PCDATA)>
<!ELEMENT order (#PCDATA)>
<!ELEMENT override (#PCDATA)>
<!ELEMENT page (#PCDATA)>
<!ELEMENT post (#PCDATA)>
<!ELEMENT presubmit (#PCDATA)>
<!ELEMENT spacer (#PCDATA)>
<!ELEMENT type (#PCDATA)>
<!ELEMENT verify (#PCDATA)>
<!-- Helper Parameters -->
<!ELEMENT id (#PCDATA)>
<!ELEMENT location (#PCDATA)>
<!ELEMENT value (#PCDATA)>