summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMicah Anderson <micah@riseup.net>2010-09-27 12:14:07 -0400
committerMicah Anderson <micah@riseup.net>2010-09-27 12:14:07 -0400
commit795430427b503c169a45924e050f42ff8b787bd0 (patch)
treeb8ac2af0c7185f2d1ee24d8e92d0f632f5799a93
parent7e4078a6c038aad2e654122f6376ab3d49b25778 (diff)
remove check_jabber_plugin, this is installed in module-ejabberd and not used in this module
-rw-r--r--files/plugins/check_jabber_login30
1 files changed, 0 insertions, 30 deletions
diff --git a/files/plugins/check_jabber_login b/files/plugins/check_jabber_login
deleted file mode 100644
index dac0e1f..0000000
--- a/files/plugins/check_jabber_login
+++ /dev/null
@@ -1,30 +0,0 @@
-#!/usr/bin/env ruby
-require 'rubygems'
-require 'xmpp4r'
-
-
-def usage
- puts "#{$0} jabberid password"
- exit 3
-end
-
-usage unless ARGV.size == 2
-
-begin
- my_client = Jabber::Client.new(ARGV[0])
- my_client.connect
- my_client.auth(ARGV[1])
-rescue Jabber::ClientAuthenticationFailure => detail
- puts "CRITICAL: Login Error"
- exit 2
-rescue Errno::ECONNREFUSED => detail
- puts "CRITICAL: Connection refused"
- exit 2
-rescue SocketError => detail
- puts "CRITICAL: Socket Error"
- exit 2
-#rescue
-# puts "CRITICAL: Unknown Error"
-# exit 2
-end
-puts "OK: Login for #{ARGV[0]} successfull"