From: cajus Date: Wed, 10 Sep 2008 09:35:39 +0000 (+0000) Subject: Moved pwdiffer to passwordMinDiffer X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=19fe38334fd5bf0c2a29c1b23cd8363213d9a98b;p=gosa.git Moved pwdiffer to passwordMinDiffer git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@12393 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-core/FAQ b/gosa-core/FAQ index f38978dff..dded880f2 100644 --- a/gosa-core/FAQ +++ b/gosa-core/FAQ @@ -98,10 +98,10 @@ A: Yes. Just go to the doc/guide/user/en directory and copy the lyx-source direc Q: Can I specify some kind of password policies? -A: You can place the keywords "passwordMinLength" and "pwdiffer" in the main section of your - gosa.conf. "passwordMinLength" specifies how many characters a password must have to be - accepted. "pwdiffer" contains the number of characters that must be different - from the previous password. +A: You can place the keywords "passwordMinLength" and "passwordMinDiffer" in the main + section of your gosa.conf. "passwordMinLength" specifies how many characters a + password must have to be accepted. "passwordMinDiffer" contains the number of + characters that must be different from the previous password. Note that these only affect passwords that are set by the user, not by the admins. diff --git a/gosa-core/contrib/gosa.conf b/gosa-core/contrib/gosa.conf index b1fe48d8c..2a2e5c916 100644 --- a/gosa-core/contrib/gosa.conf +++ b/gosa-core/contrib/gosa.conf @@ -415,7 +415,7 @@ passwordMinLength="{$cv.pwd_rules.pwminlen}" {/if} {if $cv.pwd_rules.pwdiffer_active} - pwdiffer="{$cv.pwd_rules.pwdiffer}" + passwordMinDiffer="{$cv.pwd_rules.pwdiffer}" {/if} {if $cv.pwd_rules.externalpwdhook_active} externalpwdhook="{$cv.pwd_rules.externalpwdhook}" diff --git a/gosa-core/contrib/gosa.conf.5 b/gosa-core/contrib/gosa.conf.5 index d0e2d5a9b..7580154b8 100644 --- a/gosa-core/contrib/gosa.conf.5 +++ b/gosa-core/contrib/gosa.conf.5 @@ -545,11 +545,11 @@ statement determines whether a newly entered password has to be of a minimum length. .PP -.B pwdiffer +.B passwordMinDiffer .I integer .PP The -.I pwdiffer +.I passwordMinDiffer statement determines whether a newly entered password has to be checked to have at least n different characters. .PP diff --git a/gosa-core/html/password.php b/gosa-core/html/password.php index 84752db9c..13f614b7d 100644 --- a/gosa-core/html/password.php +++ b/gosa-core/html/password.php @@ -198,8 +198,8 @@ if ($_SERVER["REQUEST_METHOD"] == "POST" && isset($_POST['apply'])){ } /* Password policy fulfilled? */ - if ($config->get_cfg_value("pwdiffer") != ""){ - $l= $config->get_cfg_value("pwdiffer"); + if ($config->get_cfg_value("passwordMinDiffer") != ""){ + $l= $config->get_cfg_value("passwordMinDiffer"); if (substr($_POST['current_password'], 0, $l) == substr($_POST['new_password'], 0, $l)){ $message[]= _("The password used as new and current are too similar."); } diff --git a/gosa-core/plugins/personal/password/class_password.inc b/gosa-core/plugins/personal/password/class_password.inc index 89cc68b46..ac4a43eeb 100644 --- a/gosa-core/plugins/personal/password/class_password.inc +++ b/gosa-core/plugins/personal/password/class_password.inc @@ -55,8 +55,8 @@ class password extends plugin if (isset($_POST['password_finish'])){ /* Should we check different characters in new password */ - $check_differ = $this->config->get_cfg_value("pwdiffer") != ""; - $differ = $this->config->get_cfg_value("pwdiffer", 0); + $check_differ = $this->config->get_cfg_value("passwordMinDiffer") != ""; + $differ = $this->config->get_cfg_value("passwordMinDiffer", 0); /* Enable length check ? */ $check_length = $this->config->get_cfg_value("passwordMinLength") != "";