# HG changeset patch # User arnold # Date 1354270424 -3600 # Node ID fae19ea0292fb7d98671da1862c1e9b482aa5f62 # Parent 1be7213b89b1eea5489e4201536bda19c630926c fix reading auth information from config if only --refresh option is given diff -r 1be7213b89b1 -r fae19ea0292f check_ldap_repl.pl --- 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 => '*'); diff -r 1be7213b89b1 -r fae19ea0292f debian/changelog --- 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 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