Skip to content

Commit a5d9b31

Browse files
committed
require domain arg for windows auth
1 parent 68435e6 commit a5d9b31

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

pysqlrecon/__main__.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,10 @@ def main(
5757
logger.warning("Cannot use --impersonate and --link together")
5858
exit()
5959

60+
if not sql_auth and domain is None:
61+
logger.warning("Windows authentication requires a domain specified with -d/--domain")
62+
exit()
63+
6064
# accesing a link may require Kerberos auth
6165
if link is not None and kerberos is False:
6266
logger.warning("Querying a linked server may require specifying Kerberos authentication")

0 commit comments

Comments
 (0)