Fix laps connection (#30)

main
mpgn 2023-07-04 21:15:16 +02:00 committed by GitHub
parent b43889563f
commit beb6d9f735
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -325,7 +325,7 @@ class connection(object):
if self.args.continue_on_success and owned:
return False
# Enforcing FQDN for SMB if not using local authentication. Related issues/PRs: #26, #28, #24
if self.args.protocol == 'smb' and not self.args.local_auth and "." not in domain:
if self.args.protocol == 'smb' and not self.args.local_auth and "." not in domain and not self.args.laps:
self.logger.error(f"Domain {domain} for user {username.rstrip()} need to be FQDN ex:domain.local, not domain")
return False