equal
deleted
inserted
replaced
173 } |
173 } |
174 } else { |
174 } else { |
175 if ($opt{binddn} && $opt{password}) { |
175 if ($opt{binddn} && $opt{password}) { |
176 $binddn = $opt{binddn}; |
176 $binddn = $opt{binddn}; |
177 $password = $opt{password}; |
177 $password = $opt{password}; |
|
178 } elsif ( -r $opt{file} ) { |
|
179 ($binddn, $password, undef, undef, undef) = read_config(); |
178 } else { |
180 } else { |
179 $binddn = prompt('BindDN: '); |
181 $binddn = prompt('BindDN: '); |
180 $password = prompt('Password: ', -e => '*'); |
182 $password = prompt('Password: ', -e => '*'); |
181 } |
183 } |
182 |
184 |