From d9d38c993b7717f1853db71b4034ef25786904ce Mon Sep 17 00:00:00 2001 From: hickert Date: Wed, 18 Jun 2008 12:39:11 +0000 Subject: [PATCH] Updated support daemon class- Added function used to remove a key from a dak key ring. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@11358 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-core/include/class_gosaSupportDaemon.inc | 28 +++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/gosa-core/include/class_gosaSupportDaemon.inc b/gosa-core/include/class_gosaSupportDaemon.inc index 478eee9c7..13f647006 100644 --- a/gosa-core/include/class_gosaSupportDaemon.inc +++ b/gosa-core/include/class_gosaSupportDaemon.inc @@ -1912,6 +1912,34 @@ class gosaSupportDaemon $res = $this->_send($xml_msg,TRUE); return($this->is_error()); } + + + /*! \brief Removes a key from the keyring on the given server. + @param String The servers mac address + @param String The gpg key uid. + @return Boolean TRUE on success else FALSE + */ + public function DAK_remove_key($server,$key) + { + /* Ensure that we send the event to a valid mac address + */ + if(!is_string($server) || !tests::is_mac($server)){ + trigger_error("No valid mac address given '".$server."'."); + return; + } + + /* Create query + */ + $xml_msg = " +
gosa_remove_dak_key
+ ".$server." + ".$key." + GOSA +
"; + + $res = $this->_send($xml_msg,TRUE); + return($this->is_error()); + } } // vim:tabstop=2:expandtab:shiftwidth=2:filetype=php:syntax:ruler: -- 2.30.2