summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 3defb76)
raw | patch | inline | side by side (parent: 3defb76)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 7 May 2008 09:49:11 +0000 (09:49 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 7 May 2008 09:49:11 +0000 (09:49 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@10813 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-plugins/heimdal/admin/systems/services/kerberos/class_password-methods-MIT.inc | patch | blob | history |
diff --git a/gosa-plugins/heimdal/admin/systems/services/kerberos/class_password-methods-MIT.inc b/gosa-plugins/heimdal/admin/systems/services/kerberos/class_password-methods-MIT.inc
index ce015b8b46b95056b39a981ad5e47f3c40f7118c..fbfd17c91ebc41b62c4ae7fa4991dfe6149d027c 100644 (file)
var $POLICIES = array(); // Policies provided by the corrently selected realm/server
-
- function __construct(&$config,$dn = "new")
+ public function __construct(&$config,$dn = "new")
{
$this->config= $config;
$this->parent_dn = $dn;
This is the case if there is a si server running and at least one server configured.
kerberos support.
*/
- function is_available()
+ public function is_available()
{
$o = new gosaSupportDaemon(FALSE);
if(count($this->server_list) && $o->connect()){
@param String The password -in this case unusued.
@return String The generated hash
*/
- function generate_hash($pwd = "")
+ public function generate_hash($pwd = "")
{
$mode= "kerberos";
if (isset($this->config->current['KRBSASL']) && preg_match('/^true$/i', $this->config->current['KRBSASL'])){
/*! \brief Removes this principal.
*/
- function remove_from_parent()
+ public function remove_from_parent()
{
if(!empty($this->principal) && $this->goKrbRealm){
$server = $this->map['REALM_SERVER'][$this->goKrbRealm];
/*! \brief Set a new password for this principal
@param String The new password.
*/
- function set_password($password)
+ public function set_password($password)
{
if(!empty($this->principal) && $this->goKrbRealm){
$server = $this->map['REALM_SERVER'][$this->goKrbRealm];
/*! \brief Return the hash name of this mehtod, e.g. to identify methods.
@return String The hash used by this method.
*/
- function get_hash_name()
+ public function get_hash_name()
{
$mode= "kerberos";
if (isset($this->config->current['KRBSASL']) && preg_match('/^true$/i', $this->config->current['KRBSASL'])){
/*! \brief Returns TRUE if this method is configurable else FALSE
@retrun Boolena TRUE if configurable, else FALSE.
*/
- function is_configurable()
+ public function is_configurable()
{
return TRUE;
}
/*! \brief Additional info displayed in the users password method drop down.
@retunr String Additional password method info.
*/
- function get_description()
+ public function get_description()
{
return(_("Daemon based"));
}
/*! \brief Display a HTML based configuration dialog for this plugin
@return String HTML.
*/
- function configure()
+ public function configure()
{
$this->save_object();
}
}
-
$smarty = get_smarty();
-
$smarty->assign("si_error",$this->si_error);
$smarty->assign("si_error_msg",$this->si_error_msg);
-
$smarty->assign("years",$years);
$smarty->assign("month",$month);
$smarty->assign("days",$days);
$smarty->assign("hours",$hours);
$smarty->assign("minutes",$minutes);
-
$smarty->assign("server_list",$this->server_list);
$smarty->assign("POLICY" ,$this->POLICY);
$smarty->assign("goKrbRealm" , $this->goKrbRealm);
-
$server_name = $this->map['REALM_SERVER'][$this->goKrbRealm];
$server_mac = $this->server_list[$server_name]['macAddress'];
$this->POLICIES = $this->load_policies_for_server($server_mac);
/*! \brief Saves all relevant HTML posts for this plugin
*/
- function save_object()
+ public function save_object()
{
/* If the communication with the si server failed,
you are able to retry to connect to the server.
/*! \brief Checks the values specified in the configuration dialog.
@return Array Containing all error messages.
*/
- function check()
+ public function check()
{
$message = array();
/*! \brief Saves changes back to the SI daemon.
*/
- function save($dn)
+ public function save($dn)
{
$ldap = $this->config->get_ldap_link();
$ldap->cd($dn);
/* Set date values
*/
- $date_values = array("PW_EXPIRATION","PRINC_EXPIRE_TIME");
+ $date_values = array("PW_EXPIRATION","PRINC_EXPIRE_TIME");
foreach($date_values as $value){
$clear = $value."_clear";
if($this->$clear){