summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 884e432)
raw | patch | inline | side by side (parent: 884e432)
author | opensides <opensides@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 23 Aug 2007 09:41:08 +0000 (09:41 +0000) | ||
committer | opensides <opensides@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 23 Aug 2007 09:41:08 +0000 (09:41 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@7122 594d385d-05f5-0310-b6e9-bd551577e9d8
plugins/admin/systems/class_servSsh.inc | patch | blob | history |
index 7b9edeca79811b986e1b1c1ec899fa443f097544..1037fb4d4196ec6b76faa52a245238e11abe3a76 100644 (file)
$ldap->cd($this->dn);
$this->cleanup();
-// $this->attrs['sshPublicKey']="";
-
$ldap->modify ($this->attrs);
- show_ldap_error($ldap->get_error(), _("Removing SSH account failed"));
+ show_ldap_error($ldap->get_error(), _("Removing SSH key failed"));
/* Optionally execute a command after we're done */
// $this->handle_post_events('remove',array("uid" => $this->uid));
plugin::save_object();
}
+ /* Check values */
+ function check()
+ {
+ /* Call common method to give check the hook */
+ $message = plugin::check();
+
+ /* Check for empty or not */
+ if(empty($this->sshPublicKey)){
+ $message[]= _("Value specified as 'SSH Key' is not valid.");
+ }
+
+ return($message);
+ }
+
/* Save to LDAP */
function save()
{
}
-
- /* Check values */
- function check()
- {
- /* Call common method to give check the hook */
- $message= plugin::check();
-
- /* Check for positive integer values */
- /* if ($this->is_account){
- if ((!is_id($this->sshPublickey))&&(chkacl($this->acl,"sshPublickey")=="")){
- $message[]= _("Value specified as 'SSH Key' is not valid.");
- }
- }*/
-
- return $message;
- }
-
-
// vim:tabstop=2:expandtab:shiftwidth=2:filetype=php:syntax:ruler:
?>