From 2a98e0d2d920d041d4f67705128010d232820938 Mon Sep 17 00:00:00 2001 From: Christoph Ostermeier Date: Mon, 20 Jun 2016 09:02:59 +0200 Subject: [PATCH] default to port 445 using smb --- jss/distribution_point.py | 2 +- jss/distribution_points.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/jss/distribution_point.py b/jss/distribution_point.py index f374357..55e258c 100644 --- a/jss/distribution_point.py +++ b/jss/distribution_point.py @@ -583,7 +583,7 @@ def _build_url(self): def _mount(self): """Mount based on which OS is running.""" # mount -t cifs -o \ - # username=,password=,domain=,port=139 \ + # username=,password=,domain=,port=445 \ # //server/share /mnt/ if is_osx(): if mount_share: diff --git a/jss/distribution_points.py b/jss/distribution_points.py index 9944d01..5c29ed8 100644 --- a/jss/distribution_points.py +++ b/jss/distribution_points.py @@ -178,8 +178,8 @@ def _get_explictly_configured_dp(self, repo): jss=self.jss) elif connection_type == "SMB": # If port isn't given, assume it's the std of - # 139. - port = repo.get("port", "139") + # 445. + port = repo.get("port", "445") dpt = SMBDistributionPoint( url=url, port=port, share_name=share_name, mount_point=mount_point, domain=domain, username=username,