Code

moved function create_passwd from gosa-si-client to modules/gosaSupportDaemon
authorrettenbe <rettenbe@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 19 May 2008 13:23:58 +0000 (13:23 +0000)
committerrettenbe <rettenbe@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 19 May 2008 13:23:58 +0000 (13:23 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@10956 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-si/gosa-si-client
gosa-si/modules/GosaSupportDaemon.pm

index a966c1a819f5dfd7ade57aa808a1c5909890eb2b..cd639b3ca9aefe1bf2957d5e19698fc12860d1bc 100755 (executable)
@@ -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 {
index 41e02ac61853196e222d68f8f73b97799e1bc314..b3430e89d2046ed5160e24d0a3471cfc65b184a1 100644 (file)
@@ -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 @_;