--- 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