From: janw Date: Mon, 11 Feb 2008 08:05:10 +0000 (+0000) Subject: Added check X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=645ccd5b94b2185be5c29cec320ffe8c4846df5e;p=gosa.git Added check git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@8800 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-si/gosa-si-server b/gosa-si/gosa-si-server index 8482e8d72..b27492194 100755 --- a/gosa-si/gosa-si-server +++ b/gosa-si/gosa-si-server @@ -552,6 +552,9 @@ sub input_from_unknown_host { sub create_ciphering { my ($passwd) = @_; + if((!defined($passwd)) || length($passwd)==0) { + $passwd = ""; + } $passwd = substr(md5_hex("$passwd") x 32, 0, 32); my $iv = substr(md5_hex('GONICUS GmbH'),0, 16); my $my_cipher = Crypt::Rijndael->new($passwd , Crypt::Rijndael::MODE_CBC());