diff --git a/plugins/admin/systems/class_goKrbServer.inc b/plugins/admin/systems/class_goKrbServer.inc
index d4e32eeeefbec99c1ac7d192fa06f3cd3ee883dc..34dd98309bf6bd40a1cfe7334fca303095048119 100644 (file)
function goKrbServer($config,$dn)
{
plugin::plugin($config,$dn);
- $this->DisplayName = _("Kerberos kadmin access informations");
+ $this->DisplayName = _("Kerberos service");
}
$fields['Message'] = _("Kerberos kadmin access informations");
$fields['AllowStart'] = true;
$fields['AllowStop'] = true;
- $fields['AllowReset'] = true;
+ $fields['AllowRestart'] = true;
$fields['AllowRemove']= true;
$fields['AllowEdit'] = true;
return($fields);
/* Directly save new status flag */
function setStatus($value)
{
+ if($value == "none") return;
+ if(!$this->initially_was_account) return;
$ldap = $this->config->get_ldap_link();
$ldap->cd($this->dn);
- $ldap->cat($this->dn,array("objectClass","goKrbRealm","goKrbAdmin","goKrbPassword"));
-
+ $ldap->cat($this->dn,array("objectClass"));
if($ldap->count()){
- $attrs =array();
- foreach(array("goKrbRealm","goKrbAdmin","goKrbPassword") as $req) {
- if(!isset($attrs[$req])){
- if(empty($this->$req)){
- print_red(sprintf(_("The required attribute '%s' is not set."),$req));
- }else{
- $attrs[$req] = $this->$req;
- }
- }else{
- $attrs[$req] = $attrs[$req][0];
- }
- }
$tmp = $ldap->fetch();
for($i = 0; $i < $tmp['objectClass']['count']; $i ++){
$attrs['objectClass'][] = $tmp['objectClass'][$i];
- }
- if(!in_array("goKrbServer",$attrs['objectClass'])){
- $attrs['objectClass'][] = "goKrbServer";
}
-
$flag = $this->StatusFlag;
$attrs[$flag] = $value;
$this->$flag = $value;
$ldap->modify($attrs);
show_ldap_error($ldap->get_error());
- }
+ }
}
-
-
+
+
function check()
{
$message = plugin::check();