Check if authentication is configured by looking for the auth database.
(self)
| 477 | loot_credentials_dir = context.get('credentials_dir') or self._default_crackedpwddir |
| 478 | self._update_loot_paths(loot_data_dir, loot_credentials_dir) |
| 479 | scan_results_dir = context.get('scan_results_dir') or self._default_scan_results_dir |
| 480 | vulnerabilities_dir = context.get('vulnerabilities_dir') or self._default_vulnerabilities_dir |
| 481 | self._update_output_paths(scan_results_dir, vulnerabilities_dir) |
| 482 | if configure_db and hasattr(self, 'db'): |
| 483 | self._configure_database() |
| 484 | |
| 485 | def _configure_database(self): |
| 486 | """Point the singleton database at the active network store.""" |
| 487 | if get_db is None or self._pager_mode: |
| 488 | return |
| 489 | if not self.current_network_dir or not self.current_network_db_path: |
| 490 | return |
| 491 | db = get_db(currentdir=self.currentdir) |
| 492 | db.configure_storage(self.current_network_dir, self.current_network_db_path) |
| 493 | self.db = db |
| 494 | |
| 495 | def _check_auth_configured(self): |
| 496 | """Check if authentication is configured by looking for the auth database.""" |