From 5878926b13403289edf8386d10973b4e749c64c8 Mon Sep 17 00:00:00 2001 From: rettenbe Date: Wed, 23 Apr 2008 07:24:47 +0000 Subject: [PATCH] new event module for kerberos git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@10629 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-si/gosa-si-client | 2 +- gosa-si/server/events/gosaTriggered.pm | 64 -------------------------- gosa-si/tests/client.php | 6 +-- 3 files changed, 2 insertions(+), 70 deletions(-) diff --git a/gosa-si/gosa-si-client b/gosa-si/gosa-si-client index d9bf2393d..4b599084a 100755 --- a/gosa-si/gosa-si-client +++ b/gosa-si/gosa-si-client @@ -916,7 +916,7 @@ sub import_events { while (defined (my $event = readdir (DIR))) { if( $event eq "." || $event eq ".." ) { next; } - + daemon_log("INFO: found event module: $event", 5); eval{ require $event; }; if( $@ ) { daemon_log("ERROR: import of event module '$event' failed", 1); diff --git a/gosa-si/server/events/gosaTriggered.pm b/gosa-si/server/events/gosaTriggered.pm index 63e7ce832..b84d8207c 100644 --- a/gosa-si/server/events/gosaTriggered.pm +++ b/gosa-si/server/events/gosaTriggered.pm @@ -32,14 +32,6 @@ my @events = ( "recreate_packages_list_db", "send_user_msg", "get_available_kernel", - "krb5_list_principals", - "krb5_list_policies", - "krb5_get_principal", - "krb5_set_principal", - "krb5_del_principal", - "krb5_get_policy", - "krb5_set_policy", - "krb5_del_policy", ); @EXPORT = @events; @@ -721,60 +713,4 @@ sub get_available_kernel { } -sub krb5_list_principals { - my ($msg, $msg_hash, $session_id) = @_; - $msg =~ s/gosa_krb5/krb5/g; - return ( $msg ); -} - - -sub krb5_set_principal { - my ($msg, $msg_hash, $session_id) = @_; - $msg =~ s/gosa_krb5/krb5/g; - return ( $msg ); -} - - -sub krb5_get_principal { - my ($msg, $msg_hash, $session_id) = @_; - $msg =~ s/gosa_krb5/krb5/g; - return ( $msg ); -} - - -sub krb5_del_principal { - my ($msg, $msg_hash, $session_id) = @_; - $msg =~ s/gosa_krb5/krb5/g; - return ( $msg ); -} - - -sub krb5_list_policies { - my ($msg, $msg_hash, $session_id) = @_; - $msg =~ s/gosa_krb5/krb5/g; - return ( $msg ); -} - - -sub krb5_get_policy { - my ($msg, $msg_hash, $session_id) = @_; - $msg =~ s/gosa_krb5/krb5/g; - return ( $msg ); -} - - -sub krb5_set_policy { - my ($msg, $msg_hash, $session_id) = @_; - $msg =~ s/gosa_krb5/krb5/g; - return ( $msg ); -} - - -sub krb5_del_policy { - my ($msg, $msg_hash, $session_id) = @_; - $msg =~ s/gosa_krb5/krb5/g; - return ( $msg ); -} - - 1; diff --git a/gosa-si/tests/client.php b/gosa-si/tests/client.php index 7a92a4c0b..4348bea9c 100755 --- a/gosa-si/tests/client.php +++ b/gosa-si/tests/client.php @@ -83,7 +83,6 @@ for($count = 1; $count <= $zahl; $count++) # messaging #$data = "
gosa_send_user_msg
GOSA GOSA eine wichtige nachricht admin rettenbe 20130101235959 kaffeepause
"; - ################ # logHandling.pm # all date and mac parameter accept regular expression as input unless other instructions are given @@ -99,11 +98,8 @@ for($count = 1; $count <= $zahl; $count++) #$data = "
gosa_get_log_file_by_date_and_mac
GOSA GOSA install_20080311_090900 00:01:6c:9d:b9:fa boot.log
"; ######### - # testing - #$data = "
gosa_query_packages_list
GOSA GOSA
"; - # Kerberos test query - $data = "
gosa_krb5_list_principals
00:0C:29:DD:CD:2A GOSA
"; + $data = "
gosa_krb5_list_principals
00:01:6c:9d:b9:fa GOSA
"; $sock->write($data); $answer = "nothing"; -- 2.30.2