summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 3287c70)
raw | patch | inline | side by side (parent: 3287c70)
author | cajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 7 May 2008 07:02:58 +0000 (07:02 +0000) | ||
committer | cajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 7 May 2008 07:02:58 +0000 (07:02 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@10800 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-si/client/events/krb5.pm | patch | blob | history |
index c027c9b0fdcd83490fead37cb4536cf08804fea6..1e79daa562fbcfb1a9a594b4011a0609333a7194 100644 (file)
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);
}
# 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 {