From: rettenbe Date: Mon, 2 Jun 2008 09:32:17 +0000 (+0000) Subject: bugfix gosa-si-server: update of client event module krb5.pm X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=2b7e4219b6b0466a8358b7dce62212385e171954;p=gosa.git bugfix gosa-si-server: update of client event module krb5.pm git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@11137 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-si/client/events/krb5.pm b/gosa-si/client/events/krb5.pm index 40343c008..0a262f5cc 100644 --- a/gosa-si/client/events/krb5.pm +++ b/gosa-si/client/events/krb5.pm @@ -92,6 +92,11 @@ sub krb5_list_principals { } } + my $forward_to_gosa = @{$msg_hash->{'forward_to_gosa'}}[0]; + if (defined $forward_to_gosa) { + &add_content2xml_hash($out_hash, "forward_to_gosa", $forward_to_gosa); + } + # return message return &create_xml_string($out_hash); } @@ -146,6 +151,11 @@ sub krb5_create_principal { } } + my $forward_to_gosa = @{$msg_hash->{'forward_to_gosa'}}[0]; + if (defined $forward_to_gosa) { + &add_content2xml_hash($out_hash, "forward_to_gosa", $forward_to_gosa); + } + # return message return &create_xml_string($out_hash); } @@ -197,6 +207,11 @@ sub krb5_modify_principal { } } + my $forward_to_gosa = @{$msg_hash->{'forward_to_gosa'}}[0]; + if (defined $forward_to_gosa) { + &add_content2xml_hash($out_hash, "forward_to_gosa", $forward_to_gosa); + } + # return message return &create_xml_string($out_hash); } @@ -248,6 +263,11 @@ sub krb5_get_principal { } } + my $forward_to_gosa = @{$msg_hash->{'forward_to_gosa'}}[0]; + if (defined $forward_to_gosa) { + &add_content2xml_hash($out_hash, "forward_to_gosa", $forward_to_gosa); + } + # return message return &create_xml_string($out_hash); } @@ -284,6 +304,11 @@ sub krb5_del_principal { } } + my $forward_to_gosa = @{$msg_hash->{'forward_to_gosa'}}[0]; + if (defined $forward_to_gosa) { + &add_content2xml_hash($out_hash, "forward_to_gosa", $forward_to_gosa); + } + # return message return &create_xml_string($out_hash); } @@ -311,6 +336,11 @@ sub krb5_list_policies { } } + my $forward_to_gosa = @{$msg_hash->{'forward_to_gosa'}}[0]; + if (defined $forward_to_gosa) { + &add_content2xml_hash($out_hash, "forward_to_gosa", $forward_to_gosa); + } + # return message return &create_xml_string($out_hash); } @@ -350,6 +380,11 @@ sub krb5_get_policy { &add_content2xml_hash($out_hash, "policy_refcnt", $data->policy_refcnt); } + my $forward_to_gosa = @{$msg_hash->{'forward_to_gosa'}}[0]; + if (defined $forward_to_gosa) { + &add_content2xml_hash($out_hash, "forward_to_gosa", $forward_to_gosa); + } + # return message return &create_xml_string($out_hash); } @@ -398,6 +433,11 @@ sub krb5_create_policy { $kadm5->create_policy($pol) or &add_content2xml_hash($out_hash, "error", Authen::Krb5::Admin::error); } + my $forward_to_gosa = @{$msg_hash->{'forward_to_gosa'}}[0]; + if (defined $forward_to_gosa) { + &add_content2xml_hash($out_hash, "forward_to_gosa", $forward_to_gosa); + } + # build return message with twisted target and source my $out_msg = &create_xml_string($out_hash); @@ -444,6 +484,11 @@ sub krb5_modify_policy { $kadm5->modify_policy($pol) or &add_content2xml_hash($out_hash, "error", Authen::Krb5::Admin::error); } + my $forward_to_gosa = @{$msg_hash->{'forward_to_gosa'}}[0]; + if (defined $forward_to_gosa) { + &add_content2xml_hash($out_hash, "forward_to_gosa", $forward_to_gosa); + } + # build return message with twisted target and source my $out_msg = &create_xml_string($out_hash); @@ -478,6 +523,11 @@ sub krb5_del_policy { $kadm5->delete_policy($policy) or &add_content2xml_hash($out_hash, "error", Authen::Krb5::Admin::error); } + my $forward_to_gosa = @{$msg_hash->{'forward_to_gosa'}}[0]; + if (defined $forward_to_gosa) { + &add_content2xml_hash($out_hash, "forward_to_gosa", $forward_to_gosa); + } + # return message return &create_xml_string($out_hash); } @@ -517,6 +567,11 @@ sub krb5_set_password { $kadm5->chpass_principal($principal, @{$msg_hash->{'password'}}[0]) or &add_content2xml_hash($out_hash, "error", Authen::Krb5::Admin::error); } + my $forward_to_gosa = @{$msg_hash->{'forward_to_gosa'}}[0]; + if (defined $forward_to_gosa) { + &add_content2xml_hash($out_hash, "forward_to_gosa", $forward_to_gosa); + } + # return message return &create_xml_string($out_hash); }