From: hickert Date: Wed, 7 May 2008 08:42:19 +0000 (+0000) Subject: Added enforce password method configuration in methods was initially selected. X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=3053e5966d28961df2488be3c75877017b09da36;p=gosa.git Added enforce password method configuration in methods was initially selected. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@10806 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-core/plugins/personal/generic/class_user.inc b/gosa-core/plugins/personal/generic/class_user.inc index 1c2cc61f5..a4f7125e8 100644 --- a/gosa-core/plugins/personal/generic/class_user.inc +++ b/gosa-core/plugins/personal/generic/class_user.inc @@ -1142,6 +1142,20 @@ class user extends plugin /* Call common method to give check the hook */ $message= plugin::check(); + /* Configurable password methods should be configured initially. + */ + if($this->last_pw_storage != $this->pw_storage){ + $temp= passwordMethod::get_available_methods(); + foreach($temp['name'] as $id => $name){ + if($name == $this->pw_storage){ + if($temp['is_configurable'][$id] && !$this->pwObject instanceof $temp[$name] ){ + $message[] = _("The selected password method a requires initial configuration."); + } + break; + } + } + } + $this->update_new_dn(); /* Set the new acl base */