From 39a9486c8176082b54b0ac59404083da221fc5fa Mon Sep 17 00:00:00 2001 From: skorov Date: Tue, 4 Jun 2024 17:09:17 +1000 Subject: [PATCH] Add default to domain variable (#14) --- smbclientng/__main__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/smbclientng/__main__.py b/smbclientng/__main__.py index 1f8e865..5277051 100644 --- a/smbclientng/__main__.py +++ b/smbclientng/__main__.py @@ -31,7 +31,7 @@ def parseArgs(): authconn = parser.add_argument_group("Authentication & connection") authconn.add_argument("--kdcHost", dest="kdcHost", action="store", metavar="FQDN KDC", help="FQDN of KDC for Kerberos.") - authconn.add_argument("-d", "--domain", dest="auth_domain", metavar="DOMAIN", action="store", help="(FQDN) domain to authenticate to") + authconn.add_argument("-d", "--domain", dest="auth_domain", metavar="DOMAIN", action="store", default='.', help="(FQDN) domain to authenticate to") authconn.add_argument("-u", "--user", dest="auth_username", metavar="USER", action="store", help="user to authenticate with") secret = parser.add_argument_group()