summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 48bf411)
raw | patch | inline | side by side (parent: 48bf411)
author | cajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 9 Oct 2009 08:08:56 +0000 (08:08 +0000) | ||
committer | cajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 9 Oct 2009 08:08:56 +0000 (08:08 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@14565 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-plugins/samba/personal/samba/class_sambaAccount.inc | patch | blob | history | |
gosa-plugins/samba/personal/samba/class_sambaMungedDial.inc | patch | blob | history |
diff --git a/gosa-plugins/samba/personal/samba/class_sambaAccount.inc b/gosa-plugins/samba/personal/samba/class_sambaAccount.inc
index a7928ba6a1c2c4b894e480c523b11b30d6fcd841..d6d3f76e4a4406233f395a4ae8851928827a45c8 100644 (file)
}
}
+ /* Check dates */
+ if (!tests::is_date($this->sambaKickoffTime)){
+ $message[]= msgPool::invalid(_("Account expires after"), $this->sambaKickoffTime,"" ,"23.02.2009");
+ }
+ if (!tests::is_date($this->sambaPwdMustChange)){
+ $message[]= msgPool::invalid(_("Password expires on"), $this->sambaPwdMustChange,"" ,"23.02.2009");
+ }
+
/* Too many workstations? Windows usrmgr only supports eight */
if (substr_count($this->sambaUserWorkstations, ",") >= 8){
$message[]= _("The windows usermanager allows eight clients at maximum!");
diff --git a/gosa-plugins/samba/personal/samba/class_sambaMungedDial.inc b/gosa-plugins/samba/personal/samba/class_sambaMungedDial.inc
index 9f0c0b42de8f3962979e70ee532864e060e88fcb..788dcc2e5c7e325cb1533ddf0e9f5cf3cd086055 100644 (file)
if($this->old_behavior==true) {
$result= substr($this->ctx['CtxCfgFlags1'], 1, 1);
} else {
- $result= substr($this->ctx['CtxShadow'], 1, 1);
+ $result= substr($this->ctx['CtxShadow'], 1, 1);
}
- return $result;
+ return $result;
}
/* sets shadow value */
function setShadow ($checked, $value)
{
- if ($checked) {
+ if ($checked) {
if($this->old_behavior==true) {
// We need to reset the old setting
$this->ctx['CtxCfgFlags1'][1]= sprintf('%1X', $value);
}
- $this->ctx['CtxShadow'][1]= sprintf('%1x', $value);
- }
+ $this->ctx['CtxShadow'][1]= sprintf('%1x', $value);
+ }
}
/* gets connect-client-drive-at-logon value: enabled/disabled */