From 295b91746ad7626d35eb424664504b8e41cc2fc3 Mon Sep 17 00:00:00 2001 From: cajus Date: Wed, 7 May 2008 07:02:58 +0000 Subject: [PATCH] Fixed policy removal/create problem git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@10800 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-si/client/events/krb5.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gosa-si/client/events/krb5.pm b/gosa-si/client/events/krb5.pm index c027c9b0f..1e79daa56 100644 --- a/gosa-si/client/events/krb5.pm +++ b/gosa-si/client/events/krb5.pm @@ -375,7 +375,7 @@ sub krb5_create_policy { if (not defined $kadm5){ &add_content2xml_hash($out_hash, "error", "Cannot connect to kadmin server"); } else { - if ( $kadm5->get_policy(@{$msg_hash->{'policy'}}[0]) or &add_content2xml_hash($out_hash, "error", Authen::Krb5::Admin::error)){ + if ( $kadm5->get_policy(@{$msg_hash->{'policy'}}[0])) { &add_content2xml_hash($out_hash, "error", "Policy exists"); return &create_xml_string($out_hash); } @@ -468,7 +468,7 @@ sub krb5_del_policy { # Authenticate my $kadm5 = Authen::Krb5::Admin->init_with_password($krb_admin, $krb_password); - my $policy; + my $policy= @{$msg_hash->{'policy'}}[0]; if (not defined $kadm5){ &add_content2xml_hash($out_hash, "error", "Cannot connect to kadmin server"); } else { -- 2.30.2