check_ldap_repl.pl
changeset 4 fae19ea0292f
parent 3 1be7213b89b1
child 6 29283ac86185
--- 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 => '*');