fix reading auth information from config if only --refresh option is given 0.3
authorarnold
Fri, 30 Nov 2012 11:13:44 +0100
changeset 4 fae19ea0292f
parent 3 1be7213b89b1
child 5 1018228e9a11
fix reading auth information from config if only --refresh option is given
check_ldap_repl.pl
debian/changelog
--- a/check_ldap_repl.pl	Fri Nov 30 10:58:06 2012 +0100
+++ b/check_ldap_repl.pl	Fri Nov 30 11:13:44 2012 +0100
@@ -175,6 +175,8 @@
 		if ($opt{binddn} && $opt{password}) {
 			$binddn = $opt{binddn};
 			$password = $opt{password};
+		} elsif ( -r $opt{file} ) {
+			($binddn, $password, undef, undef, undef) = read_config();
 		} else {
 			$binddn = prompt('BindDN: ');
 			$password = prompt('Password: ', -e => '*');
--- a/debian/changelog	Fri Nov 30 10:58:06 2012 +0100
+++ b/debian/changelog	Fri Nov 30 11:13:44 2012 +0100
@@ -1,3 +1,9 @@
+nagios-plugin-ldap-repl (0.3) stable; urgency=low
+
+  * fix option logic 
+
+ -- Christian Arnold <arnold@schlittermann.de>  Fri, 30 Nov 2012 10:59:02 +0100
+
 nagios-plugin-ldap-repl (0.2) stable; urgency=low
 
   * read ldap master from config file, if option --init or --delete; fix doc typos