implemented descriptive PDF fields

This commit is contained in:
Roland Gruber 2010-04-05 12:38:23 +00:00
parent f7fc93aedb
commit 478e6eb665
26 changed files with 182 additions and 137 deletions

View File

@ -1,6 +1,7 @@
June 2010 3.1.0 June 2010 3.1.0
- Asterisk voicemail support - Asterisk voicemail support
- new hosts module for user accounts to define valid login workstations (replaces inetOrgPerson schema hack) (2951116) - new hosts module for user accounts to define valid login workstations (replaces inetOrgPerson schema hack) (2951116)
- PDF editor: descriptive fields
- LAM Pro - LAM Pro
-> custom scripts: new options to hide executed commands and define if output is HTML or plain text -> custom scripts: new options to hide executed commands and define if output is HTML or plain text
- fixed bugs: - fixed bugs:

View File

@ -379,7 +379,7 @@ function getAvailablePDFFields($scope) {
} }
} }
} }
$return['main'] = array('dn'); $return['main'] = array('dn' => _('DN'));
return $return; return $return;
} }

View File

@ -72,10 +72,10 @@ class account extends baseModule {
$return['attributes'] = array('uid', 'description'); $return['attributes'] = array('uid', 'description');
// available PDF fields // available PDF fields
$return['PDF_fields'] = array( $return['PDF_fields'] = array(
'description' 'description' => _('Description')
); );
if (isset($_SESSION['loggedIn']) && ($_SESSION['loggedIn'] === true) && !in_array('posixAccount', $modules)) { if (isset($_SESSION['loggedIn']) && ($_SESSION['loggedIn'] === true) && !in_array('posixAccount', $modules)) {
$return['PDF_fields'][] = 'uid'; $return['PDF_fields']['uid'] = _('User name');
} }
// help Entries // help Entries
$return['help'] = array ( $return['help'] = array (

View File

@ -122,7 +122,9 @@ class asteriskAccount extends baseModule implements passwordService {
); );
// available PDF fields // available PDF fields
$return['PDF_fields'] = array( $return['PDF_fields'] = array(
'AstAccountCallerID', 'AstAccountContext', 'AstAccountHost', 'AstAccountCallerID' => _('Caller ID'),
'AstAccountContext' => _('Account context'),
'AstAccountHost' => _('Host'),
); );
// upload dependencies // upload dependencies
$return['upload_preDepends'] = array('posixAccount', 'inetOrgPerson'); $return['upload_preDepends'] = array('posixAccount', 'inetOrgPerson');

View File

@ -129,8 +129,13 @@ class asteriskExtension extends baseModule {
); );
// available PDF fields // available PDF fields
$return['PDF_fields'] = array( $return['PDF_fields'] = array(
'AstApplicationData', 'AstContext', 'AstExtension', 'AstApplicationData' => _('Application data'),
'AstPriority', 'AstApplication', 'member', 'cn' 'AstContext' => _('Account context'),
'AstExtension' => _('Extension name'),
'AstPriority' => _('Priority'),
'AstApplication' => _('Application'),
'member' => _('Extension owners'),
'cn' => _('Common name')
); );
// upload fields // upload fields
$return['upload_columns'] = array( $return['upload_columns'] = array(

View File

@ -130,10 +130,13 @@ class asteriskVoicemail extends baseModule implements passwordService {
); );
// available PDF fields // available PDF fields
$return['PDF_fields'] = array( $return['PDF_fields'] = array(
'AstContext', 'AstVoicemailMailbox', 'AstContext' => _('Account context'),
'AstVoicemailFullname', 'AstVoicemailEmail', 'AstVoicemailMailbox' => _('Mailbox'),
'AstVoicemailPager', 'AstVoicemailOptions', 'AstVoicemailFullname' => _('Full name'),
'AstVoicemailContext' 'AstVoicemailEmail' => _('Email address'),
'AstVoicemailPager' => _('Pager'),
'AstVoicemailOptions' => _('Options'),
'AstVoicemailContext' => _('Voicemail context')
); );
// upload dependencies // upload dependencies
$return['upload_preDepends'] = array('posixAccount', 'inetOrgPerson'); $return['upload_preDepends'] = array('posixAccount', 'inetOrgPerson');

View File

@ -104,9 +104,9 @@ class ddns extends baseModule {
) ,); ) ,);
// available PDF fields // available PDF fields
$return['PDF_fields'] = array( $return['PDF_fields'] = array(
'DNSserver', 'DNSserver' => _('IP address of the DNS server'),
'zone', 'zone' => _('Zone names'),
'reverseZone', 'reverseZone' => _('Reverse zone names'),
); );
// upload fields // upload fields
if (isset($_SESSION['loggedIn']) && $this->check_if_ddns_is_enable()) { if (isset($_SESSION['loggedIn']) && $this->check_if_ddns_is_enable()) {

View File

@ -4,7 +4,7 @@ $Id$
This code is part of LDAP Account Manager (http://www.ldap-account-manager.org/) This code is part of LDAP Account Manager (http://www.ldap-account-manager.org/)
Copyright (C) 2008 Thomas Manninger Copyright (C) 2008 Thomas Manninger
2008 -2010 Roland Gruber 2008 - 2010 Roland Gruber
This program is free software; you can redistribute it and/or modify This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by it under the terms of the GNU General Public License as published by
@ -163,17 +163,17 @@ By default, the nodes are configured as H-Nodes which fits for small networks. I
) ); ) );
// available PDF fields // available PDF fields
$return['PDF_fields'] = array( $return['PDF_fields'] = array(
'subnet', 'subnet' => _('Subnet'),
'domainName', 'domainName' => _('Domain name'),
'leaseTime', 'leaseTime' => _('Lease time'),
'maxLeaseTime', 'maxLeaseTime' => _('Maximum lease time'),
'DNSserver', 'DNSserver' => _('DNS'),
'gateway', 'gateway' => _('Default gateway'),
'netbiosServer', 'netbiosServer' => _('Netbios name servers'),
'netbiosType', 'netbiosType' => _('Netbios node type'),
'subnetMask', 'subnetMask' => _('Subnet mask'),
'netMask', 'netMask' => _('Net mask'),
'description' 'description' => _('Description')
); );
// profile elements // profile elements
$return['profile_options'] = array( $return['profile_options'] = array(

View File

@ -3,7 +3,7 @@
$Id$ $Id$
This code is part of LDAP Account Manager (http://www.ldap-account-manager.org/) This code is part of LDAP Account Manager (http://www.ldap-account-manager.org/)
Copyright (C) 2009 Roland Gruber Copyright (C) 2009 - 2010 Roland Gruber
This program is free software; you can redistribute it and/or modify This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by it under the terms of the GNU General Public License as published by
@ -196,9 +196,15 @@ class eduPerson extends baseModule {
); );
// available PDF fields // available PDF fields
$return['PDF_fields'] = array( $return['PDF_fields'] = array(
'affiliation', 'nickname', 'orgDN', 'orgUnitDN', 'affiliation' => _('Affiliations'),
'primaryAffiliation', 'principalName', 'entitlement', 'nickname' => _('Nick names'),
'primaryOrgUnitDN', 'scopedAffiliation' 'orgDN' => _('Organization'),
'orgUnitDN' => _('Organizational units'),
'primaryAffiliation' => _('Primary affiliation'),
'principalName' => _('Principal name'),
'entitlement' => _('Entitlements'),
'primaryOrgUnitDN' => _('Primary organizational unit'),
'scopedAffiliation' => _('Scoped affiliation')
); );
return $return; return $return;
} }

View File

@ -88,7 +88,7 @@ class fixed_ip extends baseModule {
"Text" => _("The IP address of the PC.") "Text" => _("The IP address of the PC.")
) ); ) );
// available PDF fields // available PDF fields
$return['PDF_fields'] = array('IPlist'); $return['PDF_fields'] = array('IPlist' => _('IP list'));
return $return; return $return;
} }

View File

@ -88,7 +88,7 @@ class hostObject extends baseModule {
); );
// available PDF fields // available PDF fields
$return['PDF_fields'] = array( $return['PDF_fields'] = array(
'hosts' 'hosts' => _('Host list')
); );
$return['profile_options'] = array( $return['profile_options'] = array(
array( array(

View File

@ -76,7 +76,7 @@ class ieee802Device extends baseModule {
); );
// available PDF fields // available PDF fields
$return['PDF_fields'] = array( $return['PDF_fields'] = array(
'macAddress' 'macAddress' => _('MAC address(es)')
); );
return $return; return $return;
} }

View File

@ -3,7 +3,7 @@
$Id$ $Id$
This code is part of LDAP Account Manager (http://www.ldap-account-manager.org/) This code is part of LDAP Account Manager (http://www.ldap-account-manager.org/)
Copyright (C) 2004 - 2006 Roland Gruber Copyright (C) 2004 - 2010 Roland Gruber
This program is free software; you can redistribute it and/or modify This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by it under the terms of the GNU General Public License as published by
@ -112,7 +112,9 @@ class inetLocalMailRecipient extends baseModule {
); );
// available PDF fields // available PDF fields
$return['PDF_fields'] = array( $return['PDF_fields'] = array(
'routingAdr', 'localAdr', 'host' 'routingAdr' => _('Routing address'),
'localAdr' => _('Local address list'),
'host' => _('Mail server')
); );
return $return; return $return;
} }

View File

@ -442,75 +442,75 @@ class inetOrgPerson extends baseModule implements passwordService {
} }
// available PDF fields // available PDF fields
$return['PDF_fields'] = array( $return['PDF_fields'] = array(
'givenName', 'givenName' => _('First name'),
'sn' 'sn' => _('Last name')
); );
if (!$this->isBooleanConfigOptionSet('inetOrgPerson_hideDescription')) { if (!$this->isBooleanConfigOptionSet('inetOrgPerson_hideDescription')) {
$return['PDF_fields'][] = 'description'; $return['PDF_fields']['description'] = _('Description');
} }
if (!$this->isBooleanConfigOptionSet('inetOrgPerson_hideStreet')) { if (!$this->isBooleanConfigOptionSet('inetOrgPerson_hideStreet')) {
$return['PDF_fields'][] = 'street'; $return['PDF_fields']['street'] = _('Street');
} }
if (!$this->isBooleanConfigOptionSet('inetOrgPerson_hidePostOfficeBox')) { if (!$this->isBooleanConfigOptionSet('inetOrgPerson_hidePostOfficeBox')) {
$return['PDF_fields'][] = 'postOfficeBox'; $return['PDF_fields']['postOfficeBox'] = _('Post office box');
} }
if (!$this->isBooleanConfigOptionSet('inetOrgPerson_hidePostalCode')) { if (!$this->isBooleanConfigOptionSet('inetOrgPerson_hidePostalCode')) {
$return['PDF_fields'][] = 'postalCode'; $return['PDF_fields']['postalCode'] = _('Postal code');
} }
if (!$this->isBooleanConfigOptionSet('inetOrgPerson_hideLocation')) { if (!$this->isBooleanConfigOptionSet('inetOrgPerson_hideLocation')) {
$return['PDF_fields'][] = 'location'; $return['PDF_fields']['location'] = _('Location');
} }
if (!$this->isBooleanConfigOptionSet('inetOrgPerson_hideState')) { if (!$this->isBooleanConfigOptionSet('inetOrgPerson_hideState')) {
$return['PDF_fields'][] = 'state'; $return['PDF_fields']['state'] = _('State');
} }
if (!$this->isBooleanConfigOptionSet('inetOrgPerson_hidePostalAddress')) { if (!$this->isBooleanConfigOptionSet('inetOrgPerson_hidePostalAddress')) {
$return['PDF_fields'][] = 'postalAddress'; $return['PDF_fields']['postalAddress'] = _('Postal address');
} }
if (!$this->isBooleanConfigOptionSet('inetOrgPerson_hideOfficeName')) { if (!$this->isBooleanConfigOptionSet('inetOrgPerson_hideOfficeName')) {
$return['PDF_fields'][] = 'officeName'; $return['PDF_fields']['officeName'] = _('Office name');
} }
if (!$this->isBooleanConfigOptionSet('inetOrgPerson_hideRoomNumber')) { if (!$this->isBooleanConfigOptionSet('inetOrgPerson_hideRoomNumber')) {
$return['PDF_fields'][] = 'roomNumber'; $return['PDF_fields']['roomNumber'] = _('Room number');
} }
if (!$this->isBooleanConfigOptionSet('inetOrgPerson_hideTelephoneNumber')) { if (!$this->isBooleanConfigOptionSet('inetOrgPerson_hideTelephoneNumber')) {
$return['PDF_fields'][] = 'telephoneNumber'; $return['PDF_fields']['telephoneNumber'] = _('Telephone number');
} }
if (!$this->isBooleanConfigOptionSet('inetOrgPerson_hideHomeTelephoneNumber')) { if (!$this->isBooleanConfigOptionSet('inetOrgPerson_hideHomeTelephoneNumber')) {
$return['PDF_fields'][] = 'homePhone'; $return['PDF_fields']['homePhone'] = _('Home telephone number');
} }
if (!$this->isBooleanConfigOptionSet('inetOrgPerson_hideMobileNumber')) { if (!$this->isBooleanConfigOptionSet('inetOrgPerson_hideMobileNumber')) {
$return['PDF_fields'][] = 'mobileTelephoneNumber'; $return['PDF_fields']['mobileTelephoneNumber'] = _('Mobile number');
} }
if (!$this->isBooleanConfigOptionSet('inetOrgPerson_hideFaxNumber')) { if (!$this->isBooleanConfigOptionSet('inetOrgPerson_hideFaxNumber')) {
$return['PDF_fields'][] = 'facimilieTelephoneNumber'; $return['PDF_fields']['facimilieTelephoneNumber'] = _('Fax number');
} }
if (!$this->isBooleanConfigOptionSet('inetOrgPerson_hideEMailAddress')) { if (!$this->isBooleanConfigOptionSet('inetOrgPerson_hideEMailAddress')) {
$return['PDF_fields'][] = 'mail'; $return['PDF_fields']['mail'] = _('Email address');
} }
if (!$this->isBooleanConfigOptionSet('inetOrgPerson_hideJobTitle')) { if (!$this->isBooleanConfigOptionSet('inetOrgPerson_hideJobTitle')) {
$return['PDF_fields'][] = 'title'; $return['PDF_fields']['title'] = _('Job title');
} }
if (!$this->isBooleanConfigOptionSet('inetOrgPerson_hideCarLicense')) { if (!$this->isBooleanConfigOptionSet('inetOrgPerson_hideCarLicense')) {
$return['PDF_fields'][] = 'carLicense'; $return['PDF_fields']['carLicense'] = _('Car license');
} }
if (!$this->isBooleanConfigOptionSet('inetOrgPerson_hideEmployeeType')) { if (!$this->isBooleanConfigOptionSet('inetOrgPerson_hideEmployeeType')) {
$return['PDF_fields'][] = 'employeeType'; $return['PDF_fields']['employeeType'] = _('Employee type');
} }
if (!$this->isBooleanConfigOptionSet('inetOrgPerson_hideBusinessCategory')) { if (!$this->isBooleanConfigOptionSet('inetOrgPerson_hideBusinessCategory')) {
$return['PDF_fields'][] = 'businessCategory'; $return['PDF_fields']['businessCategory'] = _('Business category');
} }
if (!$this->isBooleanConfigOptionSet('inetOrgPerson_hideDepartments')) { if (!$this->isBooleanConfigOptionSet('inetOrgPerson_hideDepartments')) {
$return['PDF_fields'][] = 'departmentNumber'; $return['PDF_fields']['departmentNumber'] = _('Department(s)');
} }
if (!$this->isBooleanConfigOptionSet('inetOrgPerson_hideManager')) { if (!$this->isBooleanConfigOptionSet('inetOrgPerson_hideManager')) {
$return['PDF_fields'][] = 'manager'; $return['PDF_fields']['manager'] = _('Manager');
} }
if (isset($_SESSION['loggedIn']) && ($_SESSION['loggedIn'] === true)) { if (isset($_SESSION['loggedIn']) && ($_SESSION['loggedIn'] === true)) {
$modules = $_SESSION['config']->get_AccountModules($this->get_scope()); $modules = $_SESSION['config']->get_AccountModules($this->get_scope());
if (!in_array('posixAccount', $modules)) { if (!in_array('posixAccount', $modules)) {
$return['PDF_fields'][] = 'uid'; $return['PDF_fields']['uid'] = _('User name');
$return['PDF_fields'][] = 'cn'; $return['PDF_fields']['cn'] = _('Common name');
} }
} }
// help Entries // help Entries

View File

@ -3,7 +3,7 @@
$Id$ $Id$
This code is part of LDAP Account Manager (http://www.ldap-account-manager.org/) This code is part of LDAP Account Manager (http://www.ldap-account-manager.org/)
Copyright (C) 2004 - 2008 Roland Gruber Copyright (C) 2004 - 2010 Roland Gruber
This program is free software; you can redistribute it and/or modify This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by it under the terms of the GNU General Public License as published by
@ -223,7 +223,13 @@ class kolabUser extends baseModule {
); );
// available PDF fields // available PDF fields
$return['PDF_fields'] = array( $return['PDF_fields'] = array(
'invPol', 'country', 'homeServer', 'aliases', 'delegate', 'freeBusy', 'quota' 'invPol' => _('Invitation policy'),
'country' => _('Country'),
'homeServer' => _('Mailbox home server'),
'aliases' => _('Email aliases'),
'delegate' => _('Delegates'),
'freeBusy' => _('Free/Busy interval'),
'quota' => _('Mail quota')
); );
return $return; return $return;
} }

View File

@ -3,7 +3,7 @@
$Id$ $Id$
This code is part of LDAP Account Manager (http://www.ldap-account-manager.org/) This code is part of LDAP Account Manager (http://www.ldap-account-manager.org/)
Copyright (C) 2005 - 2006 Roland Gruber Copyright (C) 2005 - 2010 Roland Gruber
This program is free software; you can redistribute it and/or modify This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by it under the terms of the GNU General Public License as published by
@ -78,7 +78,7 @@ class ldapPublicKey extends baseModule {
); );
// available PDF fields // available PDF fields
$return['PDF_fields'] = array( $return['PDF_fields'] = array(
'sshPublicKey' 'sshPublicKey' => _('SSH public key(s)')
); );
return $return; return $return;
} }

View File

@ -3,7 +3,7 @@
$Id$ $Id$
This code is part of LDAP Account Manager (http://www.ldap-account-manager.org/) This code is part of LDAP Account Manager (http://www.ldap-account-manager.org/)
Copyright (C) 2004 - 2006 Roland Gruber Copyright (C) 2004 - 2010 Roland Gruber
This program is free software; you can redistribute it and/or modify This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by it under the terms of the GNU General Public License as published by
@ -93,7 +93,8 @@ class nisMailAlias extends baseModule {
); );
// available PDF fields // available PDF fields
$return['PDF_fields'] = array( $return['PDF_fields'] = array(
'alias', 'recipients' 'alias' => _('Alias name'),
'recipients' => _('Recipient list')
); );
return $return; return $return;
} }

View File

@ -3,7 +3,7 @@
$Id$ $Id$
This code is part of LDAP Account Manager (http://www.ldap-account-manager.org/) This code is part of LDAP Account Manager (http://www.ldap-account-manager.org/)
Copyright (C) 2009 Roland Gruber Copyright (C) 2009 - 2010 Roland Gruber
This program is free software; you can redistribute it and/or modify This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by it under the terms of the GNU General Public License as published by
@ -121,8 +121,10 @@ class nisnetgroup extends baseModule {
); );
// available PDF fields // available PDF fields
$return['PDF_fields'] = array( $return['PDF_fields'] = array(
'cn', 'description', 'cn' => _('Group name'),
'subgroups', 'members' 'description' => _('Description'),
'subgroups' => _('Subgroups'),
'members' => _('Members')
); );
return $return; return $return;
} }

View File

@ -3,7 +3,7 @@
$Id$ $Id$
This code is part of LDAP Account Manager (http://www.ldap-account-manager.org/) This code is part of LDAP Account Manager (http://www.ldap-account-manager.org/)
Copyright (C) 2008 - 2009 Roland Gruber Copyright (C) 2008 - 2010 Roland Gruber
This program is free software; you can redistribute it and/or modify This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by it under the terms of the GNU General Public License as published by
@ -96,8 +96,10 @@ class phpGroupwareUser extends baseModule implements passwordService {
); );
// available PDF fields // available PDF fields
$return['PDF_fields'] = array( $return['PDF_fields'] = array(
'phpgwAccountStatus', 'phpgwAccountExpires', 'phpgwAccountStatus' => _('Account status'),
'phpgwLastLoginFrom', 'phpgwLastLogin' 'phpgwAccountExpires' => _('Account expiration date'),
'phpgwLastLoginFrom' => _('Last login from'),
'phpgwLastLogin' => _('Last login')
); );
// upload dependencies // upload dependencies
$return['upload_preDepends'] = array('posixAccount'); $return['upload_preDepends'] = array('posixAccount');

View File

@ -308,16 +308,16 @@ class posixAccount extends baseModule implements passwordService {
} }
// available PDF fields // available PDF fields
$return['PDF_fields'] = array( $return['PDF_fields'] = array(
'uid', 'uid' => _('User name'),
'uidNumber', 'uidNumber' => _('UID number'),
'gidNumber', 'gidNumber' => _('GID number'),
'gecos', 'gecos' => _('Gecos'),
'primaryGroup', 'primaryGroup' => _('Primary group'),
'additionalGroups', 'additionalGroups' => _('Additional groups'),
'homeDirectory', 'homeDirectory' => _('Home directory'),
'loginShell', 'loginShell' => _('Login shell'),
'cn', 'cn' => _('Common name'),
'userPassword' 'userPassword' => _('Password')
); );
// help Entries // help Entries
$return['help'] = array( $return['help'] = array(

View File

@ -4,7 +4,7 @@ $Id$
This code is part of LDAP Account Manager (http://www.ldap-account-manager.org/) This code is part of LDAP Account Manager (http://www.ldap-account-manager.org/)
Copyright (C) 2003 - 2006 Tilo Lutz Copyright (C) 2003 - 2006 Tilo Lutz
2007 - 2009 Roland Gruber 2007 - 2010 Roland Gruber
This program is free software; you can redistribute it and/or modify This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by it under the terms of the GNU General Public License as published by
@ -321,14 +321,14 @@ class posixGroup extends baseModule implements passwordService {
'error_message' => $this->messages['gidNumber'][7]); 'error_message' => $this->messages['gidNumber'][7]);
// available PDF fields // available PDF fields
$return['PDF_fields'] = array( $return['PDF_fields'] = array(
'gidNumber', 'gidNumber' => _('GID number'),
'memberUid' 'memberUid' => _('Group members')
); );
if ($this->manageCnAttribute) { if ($this->manageCnAttribute) {
array_unshift($return['PDF_fields'], 'cn'); $return['PDF_fields']['cn'] = _('Group name');
} }
if ($this->manageDescriptionAttribute) { if ($this->manageDescriptionAttribute) {
$return['PDF_fields'][] = 'description'; $return['PDF_fields']['description'] = _('Description');
} }
// upload fields // upload fields
$return['upload_columns'] = array( $return['upload_columns'] = array(

View File

@ -89,7 +89,7 @@ class quota extends baseModule {
$return['attributes'] = array('uid', 'cn'); $return['attributes'] = array('uid', 'cn');
// available PDF fields // available PDF fields
$return['PDF_fields'] = array( $return['PDF_fields'] = array(
'quotas' 'quotas' => _('Quota')
); );
// help entries // help entries
$return['help'] = array( $return['help'] = array(

View File

@ -89,7 +89,7 @@ class range extends baseModule {
) ); ) );
// available PDF fields // available PDF fields
$return['PDF_fields'] = array('ranges'); $return['PDF_fields'] = array('ranges' => _('Ranges'));
return $return; return $return;
} }

View File

@ -3,7 +3,7 @@
$Id$ $Id$
This code is part of LDAP Account Manager (http://www.ldap-account-manager.org/) This code is part of LDAP Account Manager (http://www.ldap-account-manager.org/)
Copyright (C) 2005 - 2007 Roland Gruber Copyright (C) 2005 - 2010 Roland Gruber
This program is free software; you can redistribute it and/or modify This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by it under the terms of the GNU General Public License as published by
@ -174,10 +174,23 @@ class sambaDomain extends baseModule {
); );
// available PDF fields // available PDF fields
$return['PDF_fields'] = array( $return['PDF_fields'] = array(
'domainName', 'domainSID', 'nextRID', 'nextUserRID', 'nextGroupRID', 'RIDbase', 'domainName' => _('Domain name'),
'minPwdLength', 'pwdHistoryLength', 'logonToChgPwd', 'forceLogoff', 'domainSID' => _('Domain SID'),
'refuseMachinePwdChange', 'lockoutThreshold', 'minPwdAge', 'maxPwdAge', 'nextRID' => _('Next RID'),
'lockoutDuration', 'lockoutObservationWindow'); 'nextUserRID' => _('Next user RID'),
'nextGroupRID' => _('Next group RID'),
'RIDbase' => _('RID base'),
'minPwdLength' => _('Minimal password length'),
'pwdHistoryLength' => _('Password history length'),
'logonToChgPwd' => _('Logon for password change'),
'forceLogoff' => _('Disconnect users outside logon hours'),
'refuseMachinePwdChange' => _('Allow machine password changes'),
'lockoutThreshold' => _('Lockout users after bad logon attempts'),
'minPwdAge' => _('Minimum password age'),
'maxPwdAge' => _('Maximum password age'),
'lockoutDuration' => _('Lockout duration'),
'lockoutObservationWindow' => _('Reset time after lockout')
);
return $return; return $return;
} }

View File

@ -4,7 +4,7 @@ $Id$
This code is part of LDAP Account Manager (http://www.ldap-account-manager.org/) This code is part of LDAP Account Manager (http://www.ldap-account-manager.org/)
Copyright (C) 2003 - 2006 Tilo Lutz Copyright (C) 2003 - 2006 Tilo Lutz
2007 - 2008 Roland Gruber 2007 - 2010 Roland Gruber
This program is free software; you can redistribute it and/or modify This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by it under the terms of the GNU General Public License as published by
@ -306,11 +306,11 @@ class sambaGroupMapping extends baseModule {
$return['attributes'] = array('gidNumber', 'sambaSID', 'sambaGroupType', 'displayName', 'sambaSIDList', 'description'); $return['attributes'] = array('gidNumber', 'sambaSID', 'sambaGroupType', 'displayName', 'sambaSIDList', 'description');
// available PDF fields // available PDF fields
$return['PDF_fields'] = array( $return['PDF_fields'] = array(
'gidNumber', 'gidNumber' => _('GID number'),
'sambaSID', 'sambaSID' => _('Windows group'),
'displayName', 'displayName' => _('Display name'),
'sambaGroupType', 'sambaGroupType' => _('Samba group type'),
'description' 'description' => _('Description')
); );
// upload fields // upload fields
// search existing Samba 3 domains // search existing Samba 3 domains

View File

@ -186,40 +186,42 @@ class sambaSamAccount extends baseModule implements passwordService {
} }
// available PDF fields // available PDF fields
$return['PDF_fields'] = array( $return['PDF_fields'] = array(
'displayName', 'sambaDomainName', 'sambaPrimaryGroupSID' 'displayName' => _('Display name'),
'sambaDomainName' => _('Domain'),
'sambaPrimaryGroupSID' => _('Windows group')
); );
if (!$this->isBooleanConfigOptionSet('sambaSamAccount_hideHomeDrive')) { if (!$this->isBooleanConfigOptionSet('sambaSamAccount_hideHomeDrive')) {
$return['PDF_fields'][] = 'sambaHomeDrive'; $return['PDF_fields']['sambaHomeDrive'] = _('Home drive');
} }
if (!$this->isBooleanConfigOptionSet('sambaSamAccount_hideHomePath')) { if (!$this->isBooleanConfigOptionSet('sambaSamAccount_hideHomePath')) {
$return['PDF_fields'][] = 'sambaHomePath'; $return['PDF_fields']['sambaHomePath'] = _('Home path');
} }
if (!$this->isBooleanConfigOptionSet('sambaSamAccount_hideProfilePath')) { if (!$this->isBooleanConfigOptionSet('sambaSamAccount_hideProfilePath')) {
$return['PDF_fields'][] = 'sambaProfilePath'; $return['PDF_fields']['sambaProfilePath'] = _('Profile path');
} }
if (!$this->isBooleanConfigOptionSet('sambaSamAccount_hideLogonScript')) { if (!$this->isBooleanConfigOptionSet('sambaSamAccount_hideLogonScript')) {
$return['PDF_fields'][] = 'sambaLogonScript'; $return['PDF_fields']['sambaLogonScript'] = _('Logon script');
} }
if (!$this->isBooleanConfigOptionSet('sambaSamAccount_hideWorkstations')) { if (!$this->isBooleanConfigOptionSet('sambaSamAccount_hideWorkstations')) {
$return['PDF_fields'][] = 'sambaUserWorkstations'; $return['PDF_fields']['sambaUserWorkstations'] = _('Samba workstations');
} }
if (!$this->isBooleanConfigOptionSet('sambaSamAccount_hideTerminalServer')) { if (!$this->isBooleanConfigOptionSet('sambaSamAccount_hideTerminalServer')) {
$return['PDF_fields'][] = 'tsAllowLogin'; $return['PDF_fields']['tsAllowLogin'] = _('Allow terminal server login');
$return['PDF_fields'][] = 'tsHomeDir'; $return['PDF_fields']['tsHomeDir'] = _('Home directory') . ' (TS)';
$return['PDF_fields'][] = 'tsHomeDrive'; $return['PDF_fields']['tsHomeDrive'] = _('Home drive') . ' (TS)';
$return['PDF_fields'][] = 'tsProfilePath'; $return['PDF_fields']['tsProfilePath'] = _('Profile path') . ' (TS)';
$return['PDF_fields'][] = 'tsInherit'; $return['PDF_fields']['tsInherit'] = _('Inherit client startup configuration') . ' (TS)';
$return['PDF_fields'][] = 'tsInitialProgram'; $return['PDF_fields']['tsInitialProgram'] = _('Initial program') . ' (TS)';
$return['PDF_fields'][] = 'tsWorkDirectory'; $return['PDF_fields']['tsWorkDirectory'] = _('Working directory') . ' (TS)';
$return['PDF_fields'][] = 'tsConnectionLimit'; $return['PDF_fields']['tsConnectionLimit'] = _('Connection time limit') . ' (TS)';
$return['PDF_fields'][] = 'tsDisconnectionLimit'; $return['PDF_fields']['tsDisconnectionLimit'] = _('Disconnection time limit') . ' (TS)';
$return['PDF_fields'][] = 'tsIdleLimit'; $return['PDF_fields']['tsIdleLimit'] = _('Idle time limit') . ' (TS)';
$return['PDF_fields'][] = 'tsConnectDrives'; $return['PDF_fields']['tsConnectDrives'] = _('Connect client drives') . ' (TS)';
$return['PDF_fields'][] = 'tsConnectPrinters'; $return['PDF_fields']['tsConnectPrinters'] = _('Connect client printers') . ' (TS)';
$return['PDF_fields'][] = 'tsClientPrinterDefault'; $return['PDF_fields']['tsClientPrinterDefault'] = _('Client printer is default') . ' (TS)';
$return['PDF_fields'][] = 'tsShadowing'; $return['PDF_fields']['tsShadowing'] = _('Shadowing') . ' (TS)';
$return['PDF_fields'][] = 'tsBrokenConn'; $return['PDF_fields']['tsBrokenConn'] = _('On broken or timed out connection') . ' (TS)';
$return['PDF_fields'][] = 'tsReconnect'; $return['PDF_fields']['tsReconnect'] = _('Reconnect if disconnected') . ' (TS)';
} }
$return['selfServiceFieldSettings'] = array( $return['selfServiceFieldSettings'] = array(
'syncNTPassword' => _('Sync Samba NT password with Unix password'), 'syncNTPassword' => _('Sync Samba NT password with Unix password'),
@ -1361,8 +1363,8 @@ class sambaSamAccount extends baseModule implements passwordService {
} }
$return[] = array(0 => array('kind' => 'text', 'text' => ' ', 'td' => array('colspan' => 8))); $return[] = array(0 => array('kind' => 'text', 'text' => ' ', 'td' => array('colspan' => 8)));
$return[] = array( $return[] = array(
0 => array('kind' => 'input', 'name' => 'form_subpage_sambaSamAccount_attributes_submit', 'type' => 'submit', 'value' => _('Ok'), 'td' => array('align' => 'right')), array('kind' => 'input', 'name' => 'form_subpage_sambaSamAccount_attributes_submit', 'type' => 'submit', 'value' => _('Ok'), 'td' => array('align' => 'right')),
1 => array('kind' => 'input', 'name' => 'form_subpage_sambaSamAccount_attributes_abort', 'type' => 'submit', 'value' => _('Cancel'), 'td' => array('align' => 'left')) array('kind' => 'input', 'name' => 'form_subpage_sambaSamAccount_attributes_abort', 'type' => 'submit', 'value' => _('Cancel'), 'td' => array('align' => 'left'))
); );
return $return; return $return;
} }
@ -1790,34 +1792,34 @@ class sambaSamAccount extends baseModule implements passwordService {
$tsAllowLogin = _('no'); $tsAllowLogin = _('no');
} }
$return['sambaSamAccount_tsAllowLogin'] = array('<block><key>' . _('Allow terminal server login') . '</key><value>' . $tsAllowLogin . '</value></block>'); $return['sambaSamAccount_tsAllowLogin'] = array('<block><key>' . _('Allow terminal server login') . '</key><value>' . $tsAllowLogin . '</value></block>');
$return['sambaSamAccount_tsHomeDir'] = array('<block><key>' . _('Home directory') . '</key><value>' . $mDial->ctx['CtxWFHomeDir'] . '</value></block>'); $return['sambaSamAccount_tsHomeDir'] = array('<block><key>' . _('Home directory') . ' (TS)</key><value>' . $mDial->ctx['CtxWFHomeDir'] . '</value></block>');
$return['sambaSamAccount_tsHomeDrive'] = array('<block><key>' . _('Home drive') . '</key><value>' . $mDial->ctx['CtxWFHomeDirDrive'] . '</value></block>'); $return['sambaSamAccount_tsHomeDrive'] = array('<block><key>' . _('Home drive') . ' (TS)</key><value>' . $mDial->ctx['CtxWFHomeDirDrive'] . '</value></block>');
$return['sambaSamAccount_tsProfilePath'] = array('<block><key>' . _('Profile path') . '</key><value>' . $mDial->ctx['CtxWFProfilePath'] . '</value></block>'); $return['sambaSamAccount_tsProfilePath'] = array('<block><key>' . _('Profile path') . ' (TS)</key><value>' . $mDial->ctx['CtxWFProfilePath'] . '</value></block>');
$tsInherit = _('yes'); $tsInherit = _('yes');
if (!$mDial->getInheritMode()) { if (!$mDial->getInheritMode()) {
$tsInherit = _('no'); $tsInherit = _('no');
} }
$return['sambaSamAccount_tsInherit'] = array('<block><key>' . _('Inherit client startup configuration') . '</key><value>' . $tsInherit . '</value></block>'); $return['sambaSamAccount_tsInherit'] = array('<block><key>' . _('Inherit client startup configuration') . ' (TS)</key><value>' . $tsInherit . '</value></block>');
$return['sambaSamAccount_tsInitialProgram'] = array('<block><key>' . _('Initial program') . '</key><value>' . $mDial->ctx['CtxInitialProgram'] . '</value></block>'); $return['sambaSamAccount_tsInitialProgram'] = array('<block><key>' . _('Initial program') . ' (TS)</key><value>' . $mDial->ctx['CtxInitialProgram'] . '</value></block>');
$return['sambaSamAccount_tsWorkDirectory'] = array('<block><key>' . _('Working directory') . '</key><value>' . $mDial->ctx['CtxWorkDirectory'] . '</value></block>'); $return['sambaSamAccount_tsWorkDirectory'] = array('<block><key>' . _('Working directory') . ' (TS)</key><value>' . $mDial->ctx['CtxWorkDirectory'] . '</value></block>');
$return['sambaSamAccount_tsConnectionLimit'] = array('<block><key>' . _('Connection time limit') . '</key><value>' . $mDial->ctx['CtxMaxConnectionTime'] . '</value></block>'); $return['sambaSamAccount_tsConnectionLimit'] = array('<block><key>' . _('Connection time limit') . ' (TS)</key><value>' . $mDial->ctx['CtxMaxConnectionTime'] . '</value></block>');
$return['sambaSamAccount_tsDisconnectionLimit'] = array('<block><key>' . _('Disconnection time limit') . '</key><value>' . $mDial->ctx['CtxMaxDisconnectionTime'] . '</value></block>'); $return['sambaSamAccount_tsDisconnectionLimit'] = array('<block><key>' . _('Disconnection time limit') . ' (TS)</key><value>' . $mDial->ctx['CtxMaxDisconnectionTime'] . '</value></block>');
$return['sambaSamAccount_tsIdleLimit'] = array('<block><key>' . _('Idle time limit') . '</key><value>' . $mDial->ctx['CtxMaxIdleTime'] . '</value></block>'); $return['sambaSamAccount_tsIdleLimit'] = array('<block><key>' . _('Idle time limit') . ' (TS)</key><value>' . $mDial->ctx['CtxMaxIdleTime'] . '</value></block>');
$tsConnectDrives = _('yes'); $tsConnectDrives = _('yes');
if (!$mDial->getConnectClientDrives()) { if (!$mDial->getConnectClientDrives()) {
$tsConnectDrives = _('no'); $tsConnectDrives = _('no');
} }
$return['sambaSamAccount_tsConnectDrives'] = array('<block><key>' . _('Connect client drives') . '</key><value>' . $tsConnectDrives . '</value></block>'); $return['sambaSamAccount_tsConnectDrives'] = array('<block><key>' . _('Connect client drives') . ' (TS)</key><value>' . $tsConnectDrives . '</value></block>');
$tsConnectPrinters = _('yes'); $tsConnectPrinters = _('yes');
if (!$mDial->getConnectClientPrinters()) { if (!$mDial->getConnectClientPrinters()) {
$tsConnectPrinters = _('no'); $tsConnectPrinters = _('no');
} }
$return['sambaSamAccount_tsConnectPrinters'] = array('<block><key>' . _('Connect client printers') . '</key><value>' . $tsConnectPrinters . '</value></block>'); $return['sambaSamAccount_tsConnectPrinters'] = array('<block><key>' . _('Connect client printers') . ' (TS)</key><value>' . $tsConnectPrinters . '</value></block>');
$tsClientPrinterDefault = _('yes'); $tsClientPrinterDefault = _('yes');
if (!$mDial->getDefaultPrinter()) { if (!$mDial->getDefaultPrinter()) {
$tsClientPrinterDefault = _('no'); $tsClientPrinterDefault = _('no');
} }
$return['sambaSamAccount_tsClientPrinterDefault'] = array('<block><key>' . _('Client printer is default') . '</key><value>' . $tsClientPrinterDefault . '</value></block>'); $return['sambaSamAccount_tsClientPrinterDefault'] = array('<block><key>' . _('Client printer is default') . ' (TS)</key><value>' . $tsClientPrinterDefault . '</value></block>');
$shadowOptions = array( $shadowOptions = array(
'0' => _("disabled"), '0' => _("disabled"),
'1' => _("input on, notify on"), '1' => _("input on, notify on"),
@ -1828,7 +1830,7 @@ class sambaSamAccount extends baseModule implements passwordService {
if (($mDial->getShadow() != null) && is_numeric($mDial->getShadow())) { if (($mDial->getShadow() != null) && is_numeric($mDial->getShadow())) {
$tsShadowing = $shadowOptions[$mDial->getShadow()]; $tsShadowing = $shadowOptions[$mDial->getShadow()];
} }
$return['sambaSamAccount_tsShadowing'] = array('<block><key>' . _('Shadowing') . '</key><value>' . $tsShadowing . '</value></block>'); $return['sambaSamAccount_tsShadowing'] = array('<block><key>' . _('Shadowing') . ' (TS)</key><value>' . $tsShadowing . '</value></block>');
$brokenConnOptions = array( $brokenConnOptions = array(
'0' => _("disconnect"), '0' => _("disconnect"),
'1' => _("reset")); '1' => _("reset"));
@ -1836,7 +1838,7 @@ class sambaSamAccount extends baseModule implements passwordService {
if (($mDial->getBrokenConn() != null) && is_numeric($mDial->getBrokenConn())) { if (($mDial->getBrokenConn() != null) && is_numeric($mDial->getBrokenConn())) {
$tsBrokenConn = $brokenConnOptions[$mDial->getBrokenConn()]; $tsBrokenConn = $brokenConnOptions[$mDial->getBrokenConn()];
} }
$return['sambaSamAccount_tsBrokenConn'] = array('<block><key>' . _('On broken or timed out connection') . '</key><value>' . $tsBrokenConn . '</value></block>'); $return['sambaSamAccount_tsBrokenConn'] = array('<block><key>' . _('On broken or timed out connection') . ' (TS)</key><value>' . $tsBrokenConn . '</value></block>');
$reconnectOptions = array( $reconnectOptions = array(
'0' => _("from any client"), '0' => _("from any client"),
'1' => _("from previous client only")); '1' => _("from previous client only"));
@ -1844,7 +1846,7 @@ class sambaSamAccount extends baseModule implements passwordService {
if (($mDial->getReConn() != null) && is_numeric($mDial->getReConn())) { if (($mDial->getReConn() != null) && is_numeric($mDial->getReConn())) {
$tsReconnect = $reconnectOptions[$mDial->getReConn()]; $tsReconnect = $reconnectOptions[$mDial->getReConn()];
} }
$return['sambaSamAccount_tsReconnect'] = array('<block><key>' . _('Reconnect if disconnected') . '</key><value>' . $tsReconnect . '</value></block>'); $return['sambaSamAccount_tsReconnect'] = array('<block><key>' . _('Reconnect if disconnected') . ' (TS)</key><value>' . $tsReconnect . '</value></block>');
} }
return $return; return $return;
} }