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 => '*');