Code

Fixed randkey call
authorcajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 5 Jun 2008 07:13:16 +0000 (07:13 +0000)
committercajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 5 Jun 2008 07:13:16 +0000 (07:13 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@11222 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-si/client/events/krb5.pm

index 474e1ed338ad81798deed472013b0547380bfdd0..57d295a7f137633c4b7020c51c0f50a9efae0405 100644 (file)
@@ -150,8 +150,8 @@ sub krb5_create_principal {
         $princ->principal($principal);
         $kadm5->create_principal($princ, join '', map { chr rand(255) + 1 } 1..256) or &add_content2xml_hash($out_hash, "error", Authen::Krb5::Admin::error);
 
-       # Directly randomize key
-       $kadm5->randkey_principal($princ);
+        # Directly randomize key
+        $kadm5->randkey_principal($principal);
       }
     }