Удалено использование os_remote_client

develop 3.3.0_alpha3
Mike Khiretskiy 9 years ago
parent 277fa3d408
commit 4ebd8efa30

@ -252,11 +252,9 @@ class Client(commandServer, encrypt, Desktop):
self.clVars.Delete("cl_remote_host", "local")
self.clVars.Delete("cl_remote_pw", "local")
self.clVars.Delete("os_remote_auth")
self.clVars.Delete("os_remote_client")
self.clVars.Set("cl_remote_host", "", True)
self.clVars.Set("cl_remote_pw", "", True)
self.clVars.Set("os_remote_auth", "", True)
self.clVars.Set("os_remote_client", "", True)
return True
def mountSambaRes(self,host,userName,userPwd,res,rpath,uid=None,gid=None):
@ -1083,7 +1081,6 @@ class Client(commandServer, encrypt, Desktop):
# write domain to config
self.clVars.Write("os_remote_auth", domain, True)
# write current program version
self.clVars.Write("os_remote_client", currentVersion, True)
self.clVars.Write("cl_remote_host", domain, True, "local")
self.clVars.Write("cl_remote_pw", pwdRemote, True, "local")
return True
@ -1126,13 +1123,11 @@ class Client(commandServer, encrypt, Desktop):
self.printSUCCESS(_("The workstation is configured for work "
"in the domain"))
currentVersion = self.clVars.Get("cl_ver")
self.clVars.Write("os_remote_client", currentVersion, True)
self.clVars.Write("os_remote_auth", hostAuth, True)
else:
self.printSUCCESS(_("The workstation is configured for work "
"outside the domain"))
self.clVars.Delete("os_remote_auth")
self.clVars.Delete("os_remote_client")
return True
def cDelLdapSysUsersAndSyncCache(self):

@ -299,11 +299,6 @@ class VariableClClientRelevanceSet(ReadonlyVariable):
if (self.Get('cl_remote_host') and
not isMount(self.Get('cl_client_remote_path'))):
return "off"
currentVersion = self.Get("cl_ver")
# версия программы, который были наложены шаблоны
previousVersion = self.Get("os_remote_client")
if cmpVersion(currentVersion,previousVersion):
return "off"
return "on"
class VariableClClientRemotePath(Variable):

Loading…
Cancel
Save