From 9c01f095ee00c69f23bb8226e29c490537dc452b Mon Sep 17 00:00:00 2001 From: rettenbe Date: Mon, 19 May 2008 13:23:58 +0000 Subject: [PATCH] moved function create_passwd from gosa-si-client to modules/gosaSupportDaemon git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@10956 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-si/gosa-si-client | 17 +++++++++-------- gosa-si/modules/GosaSupportDaemon.pm | 11 +++++++++++ 2 files changed, 20 insertions(+), 8 deletions(-) diff --git a/gosa-si/gosa-si-client b/gosa-si/gosa-si-client index a966c1a81..cd639b3ca 100755 --- a/gosa-si/gosa-si-client +++ b/gosa-si/gosa-si-client @@ -500,14 +500,15 @@ sub generate_hw_digest { } -sub create_passwd { - my $new_passwd = ""; - for(my $i=0; $i<31; $i++) { - $new_passwd .= ("a".."z","A".."Z",0..9)[int(rand(62))] - } - - return $new_passwd; -} +# moved to GosaSupportDaemon: rettenbe, 19.05.2008 +#sub create_passwd { +# my $new_passwd = ""; +# for(my $i=0; $i<31; $i++) { +# $new_passwd .= ("a".."z","A".."Z",0..9)[int(rand(62))] +# } +# +# return $new_passwd; +#} sub create_ciphering { diff --git a/gosa-si/modules/GosaSupportDaemon.pm b/gosa-si/modules/GosaSupportDaemon.pm index 41e02ac61..b3430e89d 100644 --- a/gosa-si/modules/GosaSupportDaemon.pm +++ b/gosa-si/modules/GosaSupportDaemon.pm @@ -60,6 +60,17 @@ sub daemon_log { return; } + +sub create_passwd { + my $new_passwd = ""; + for(my $i=0; $i<31; $i++) { + $new_passwd .= ("a".."z","A".."Z",0..9)[int(rand(62))] + } + + return $new_passwd; +} + + sub del_doubles { my %all; $all{$_}=0 for @_; -- 2.30.2