From c17b1be89aac08aa97593bd97b56e937cfeb367c Mon Sep 17 00:00:00 2001 From: cajus Date: Tue, 27 May 2008 10:44:18 +0000 Subject: [PATCH] Added randkey to krb5 git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@11026 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-si/client/events/krb5.pm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gosa-si/client/events/krb5.pm b/gosa-si/client/events/krb5.pm index 1e79daa56..40343c008 100644 --- a/gosa-si/client/events/krb5.pm +++ b/gosa-si/client/events/krb5.pm @@ -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); } } -- 2.30.2