|
|
|
@ -53,10 +53,10 @@ class VariableClRemoteHostNew(Variable):
|
|
|
|
|
if self.Get('cl_localhost_set') == 'off':
|
|
|
|
|
if self.Get('cl_remote_host') == '':
|
|
|
|
|
if not value:
|
|
|
|
|
raise VariableError(_("Need to specify domain"))
|
|
|
|
|
raise VariableError(_("Need to specify the domain"))
|
|
|
|
|
elif not isOpenPort(value,445):
|
|
|
|
|
raise VariableError(
|
|
|
|
|
_("Specified address is not available"))
|
|
|
|
|
_("The specified address is not available"))
|
|
|
|
|
|
|
|
|
|
class VariableClRemoteHostLive(ReadonlyVariable):
|
|
|
|
|
"""
|
|
|
|
@ -88,7 +88,7 @@ class VariableClRemotePw(Variable):
|
|
|
|
|
|
|
|
|
|
def init(self):
|
|
|
|
|
self.label = _("Domain password")
|
|
|
|
|
self.help = _("specify domain password")
|
|
|
|
|
self.help = _("specify the domain password")
|
|
|
|
|
|
|
|
|
|
def get(self):
|
|
|
|
|
return getValueFromCmdLine("calculate","domain_pw") or ""
|
|
|
|
@ -133,7 +133,7 @@ class VariableClClientSync(Variable):
|
|
|
|
|
opt = ["--sync"]
|
|
|
|
|
|
|
|
|
|
def init(self):
|
|
|
|
|
self.label = _("Synchronize user profile")
|
|
|
|
|
self.label = _("Synchronize the user profile")
|
|
|
|
|
self.help = _("synchronize user preferences")
|
|
|
|
|
|
|
|
|
|
class VariableClLocalhostSet(Variable):
|
|
|
|
@ -148,7 +148,7 @@ class VariableClLocalhostSet(Variable):
|
|
|
|
|
|
|
|
|
|
def init(self):
|
|
|
|
|
self.label = _("Computer role")
|
|
|
|
|
self.help = _("remove the settings for connecting to the domain")
|
|
|
|
|
self.help = _("remove the domain connection settings")
|
|
|
|
|
|
|
|
|
|
def choice(self):
|
|
|
|
|
return [("off",_("Domain workstation")),
|
|
|
|
@ -156,7 +156,7 @@ class VariableClLocalhostSet(Variable):
|
|
|
|
|
|
|
|
|
|
def check(self,value):
|
|
|
|
|
if self.Get('cl_remote_host') == '' and value == "on":
|
|
|
|
|
raise VariableError(_("The computer is not in the domain already"))
|
|
|
|
|
raise VariableError(_("The computer is not in the domain"))
|
|
|
|
|
if self.Get('cl_remote_host') != '' and value == "off":
|
|
|
|
|
raise VariableError(_("The computer is already in the domain %s")
|
|
|
|
|
%self.Get('cl_remote_host') + "\n" +
|
|
|
|
|