From 0b6423f9c99d9edf8c96fefd0f6c453859395aa1 Mon Sep 17 00:00:00 2001 From: Holger Weiss Date: Mon, 30 Sep 2013 00:03:24 +0200 Subject: Import Nagios Plugins site Import the Nagios Plugins web site, Cronjobs, infrastructure scripts, and configuration files. --- web/attachments/129978-allow_empty_passwords | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 web/attachments/129978-allow_empty_passwords (limited to 'web/attachments/129978-allow_empty_passwords') diff --git a/web/attachments/129978-allow_empty_passwords b/web/attachments/129978-allow_empty_passwords new file mode 100644 index 0000000..f78f247 --- /dev/null +++ b/web/attachments/129978-allow_empty_passwords @@ -0,0 +1,24 @@ +--- plugins-scripts/check_disk_smb.pl.old 2005-04-15 16:22:18.000000000 +0200 ++++ plugins-scripts/check_disk_smb.pl 2005-04-15 16:25:44.000000000 +0200 +@@ -76,7 +76,7 @@ + my $user = $1 if ($opt_u =~ /^([-_.A-Za-z0-9\\]+)$/); + ($user) || usage("Invalid user: $opt_u\n"); + +-($opt_p) || ($opt_p = shift) || ($opt_p = "guest"); ++($opt_p) || ($opt_p = shift) || ($opt_p = ""); + my $pass = $1 if ($opt_p =~ /(.*)/); + + ($opt_w) || ($opt_w = shift) || ($opt_w = 85); +@@ -123,10 +123,10 @@ + # Execute an "ls" on the share using smbclient program + # get the results into $res + if (defined($workgroup)) { +- $res = qx/$smbclient \/\/$host\/$share $pass -W $workgroup -U $user $smbclientoptions -c ls/; ++ $res = qx/$smbclient \/\/$host\/$share -W $workgroup -U $user%$pass $smbclientoptions -c ls/; + } else { + print "$smbclient " . "\/\/$host\/$share" ." $pass -U $user $smbclientoptions -c ls\n" if ($verbose); +- $res = qx/$smbclient \/\/$host\/$share $pass -U $user $smbclientoptions -c ls/; ++ $res = qx/$smbclient \/\/$host\/$share -U $user%$pass $smbclientoptions -c ls/; + } + #Turn off alarm + alarm(0); -- cgit v1.2.3-74-g34f1