summaryrefslogtreecommitdiffstats
path: root/web/attachments/129978-allow_empty_passwords
diff options
context:
space:
mode:
authorHolger Weiss <holger@zedat.fu-berlin.de>2013-09-29 22:03:24 (GMT)
committerHolger Weiss <holger@zedat.fu-berlin.de>2013-09-29 22:03:24 (GMT)
commit0b6423f9c99d9edf8c96fefd0f6c453859395aa1 (patch)
tree1c2b6b21704a294940f87c7892676998d8371707 /web/attachments/129978-allow_empty_passwords
downloadsite-0b6423f9c99d9edf8c96fefd0f6c453859395aa1.tar.gz
Import Nagios Plugins site
Import the Nagios Plugins web site, Cronjobs, infrastructure scripts, and configuration files.
Diffstat (limited to 'web/attachments/129978-allow_empty_passwords')
-rw-r--r--web/attachments/129978-allow_empty_passwords24
1 files changed, 24 insertions, 0 deletions
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 @@
1--- plugins-scripts/check_disk_smb.pl.old 2005-04-15 16:22:18.000000000 +0200
2+++ plugins-scripts/check_disk_smb.pl 2005-04-15 16:25:44.000000000 +0200
3@@ -76,7 +76,7 @@
4 my $user = $1 if ($opt_u =~ /^([-_.A-Za-z0-9\\]+)$/);
5 ($user) || usage("Invalid user: $opt_u\n");
6
7-($opt_p) || ($opt_p = shift) || ($opt_p = "guest");
8+($opt_p) || ($opt_p = shift) || ($opt_p = "");
9 my $pass = $1 if ($opt_p =~ /(.*)/);
10
11 ($opt_w) || ($opt_w = shift) || ($opt_w = 85);
12@@ -123,10 +123,10 @@
13 # Execute an "ls" on the share using smbclient program
14 # get the results into $res
15 if (defined($workgroup)) {
16- $res = qx/$smbclient \/\/$host\/$share $pass -W $workgroup -U $user $smbclientoptions -c ls/;
17+ $res = qx/$smbclient \/\/$host\/$share -W $workgroup -U $user%$pass $smbclientoptions -c ls/;
18 } else {
19 print "$smbclient " . "\/\/$host\/$share" ." $pass -U $user $smbclientoptions -c ls\n" if ($verbose);
20- $res = qx/$smbclient \/\/$host\/$share $pass -U $user $smbclientoptions -c ls/;
21+ $res = qx/$smbclient \/\/$host\/$share -U $user%$pass $smbclientoptions -c ls/;
22 }
23 #Turn off alarm
24 alarm(0);