From 72fa7fecbcf6301045bfdf0e0fe44acab9fadad8 Mon Sep 17 00:00:00 2001 From: hickert Date: Thu, 18 Jun 2009 13:59:07 +0000 Subject: [PATCH] Updated samba plugin, show domain infos in an extra tab git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@13732 594d385d-05f5-0310-b6e9-bd551577e9d8 --- .../goto/personal/environment/class_environment.inc | 2 +- .../samba/personal/samba/class_sambaAccount.inc | 11 ++++++----- gosa-plugins/samba/personal/samba/samba3.tpl | 11 ----------- 3 files changed, 7 insertions(+), 17 deletions(-) diff --git a/gosa-plugins/goto/personal/environment/class_environment.inc b/gosa-plugins/goto/personal/environment/class_environment.inc index c6f82a34a..c7befa3ce 100644 --- a/gosa-plugins/goto/personal/environment/class_environment.inc +++ b/gosa-plugins/goto/personal/environment/class_environment.inc @@ -1240,7 +1240,7 @@ class environment extends plugin /* Prepare HotPlug devices */ $this->attrs['gotoHotplugDeviceDN'] = array(); foreach($this->gotoHotplugDevices as $name => $device){ - $this->attrs['gotoHotplugDeviceDN'][]= $device['dn']; + $this->attrs['gotoHotplugDeviceDN'][]= LDAP::fix($device['dn']); } /* Prepare LogonScripts */ diff --git a/gosa-plugins/samba/personal/samba/class_sambaAccount.inc b/gosa-plugins/samba/personal/samba/class_sambaAccount.inc index bd3b56686..b8c2c082e 100644 --- a/gosa-plugins/samba/personal/samba/class_sambaAccount.inc +++ b/gosa-plugins/samba/personal/samba/class_sambaAccount.inc @@ -977,8 +977,7 @@ class sambaAccount extends plugin } $str = - "\n
". - "\n". + "\n
". "\n". "\n". "\n". @@ -990,7 +989,7 @@ class sambaAccount extends plugin "\n". "\n". "\n". - "\n
"._("Domain attributes")."
"._("Min password length").": ".$sambaMinPwdLength."
"._("Min password length").": ".$sambaMinPwdLength."
"._("Bad lockout attempt").": ".$sambaLockoutThreshold."
"._("Disconnect time").": ".$sambaForceLogoff."
"._("Refuse machine password change").":".$sambaRefuseMachinePwdChange."
". + "\n". "\n". "\n". "\n". @@ -1000,7 +999,7 @@ class sambaAccount extends plugin "\n". "\n". "\n". - "\n
 
"._("User attributes")."
"._("Last failed login").": ".$sambaBadPasswordTime."
"._("Logon attempts").": ".$sambaBadPasswordCount."
"._("Automatic logoff").": ".$sambaKickoffTime."
"._("Password expires").": ".$sambaPwdMustChange."
"._("Password change available").": ".$sambaPwdCanChange."
"; + "\n"; return($str); } @@ -1103,7 +1102,9 @@ class sambaAccount extends plugin plugin::save_object(); if(isset($_POST['display_information'])){ - $this->display_information = !$this->display_information; + msg_dialog::display(_("Information"), + $this->get_samba_information(), + INFO_DIALOG); } /* Take care about access options */ diff --git a/gosa-plugins/samba/personal/samba/samba3.tpl b/gosa-plugins/samba/personal/samba/samba3.tpl index 44e30b006..4974b52f8 100644 --- a/gosa-plugins/samba/personal/samba/samba3.tpl +++ b/gosa-plugins/samba/personal/samba/samba3.tpl @@ -66,20 +66,9 @@ - {if $display_information} - - - - {/if}
{t}Show information{/t} - {if $display_information} - - {else} - {/if}
- {$samba_information} -

 

-- 2.30.2