From b1f426c145b7be6afb671dcc9e441a7c19152409 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=A5=D0=B8=D1=80=D0=B5=D1=86=D0=BA=D0=B8=D0=B9=20=D0=9C?= =?UTF-8?q?=D0=B8=D1=85=D0=B0=D0=B8=D0=BB?= Date: Thu, 15 Nov 2018 14:03:03 +0300 Subject: [PATCH] =?UTF-8?q?=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D0=BB=D0=B5?= =?UTF-8?q?=D0=BD=D0=B0=20=D0=BF=D1=80=D0=BE=D0=B2=D0=B5=D1=80=D0=BA=D0=B0?= =?UTF-8?q?=20=D0=B7=D0=BD=D0=B0=D1=87=D0=B5=D0=BD=D0=B8=D1=8F=20sr=5Fsamb?= =?UTF-8?q?a=5Fhost=20=D0=BF=D1=80=D0=B8=20=D0=B2=D0=B2=D0=BE=D0=B4=D0=B5?= =?UTF-8?q?=20=D0=B2=20=D0=B4=D0=BE=D0=BC=D0=B5=D0=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pym/client/client.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/pym/client/client.py b/pym/client/client.py index 8fb732f..36809e2 100644 --- a/pym/client/client.py +++ b/pym/client/client.py @@ -1160,12 +1160,21 @@ class Client(commandServer, encrypt, Desktop): unixDn = self.getInfoService("unix", "dn") bindDn = self.getInfoService("unix", "bind_dn") bindPw = self.getInfoService("unix", "bind_pw") + sambaHost = self.getInfoService("samba", "host") # check info from server if not (servDn and unixDn and bindDn and bindPw): raise ClientError(_("Info not found on the server") + _(": ") + _( "services DN or unix DN or bind DN or bind password")) self.clVars.Set("os_remote_auth", domain) + try: + self.getDomainPassword(sambaHost) + except ClientError: + self.printWARNING( + _("Failed to authorize on %s") % sambaHost) + self.printWARNING( + _("Wrong value of variable sr_samba_host in %s") % + "/var/calculate/remote/calculate.env") return True def applyClientTemplates(self, hostAuth=""):