From: cajus Date: Wed, 7 May 2008 07:02:58 +0000 (+0000) Subject: Fixed policy removal/create problem X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=295b91746ad7626d35eb424664504b8e41cc2fc3;p=gosa.git Fixed policy removal/create problem git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@10800 594d385d-05f5-0310-b6e9-bd551577e9d8 --- 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 {