Code

Added randkey to krb5
authorcajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 27 May 2008 10:44:18 +0000 (10:44 +0000)
committercajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 27 May 2008 10:44:18 +0000 (10:44 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@11026 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-si/client/events/krb5.pm

index 1e79daa562fbcfb1a9a594b4011a0609333a7194..40343c00850146a9fa9898f99f68e5dc490c7192 100644 (file)
@@ -140,6 +140,9 @@ 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);
       }
     }