Update versions

master3.3
parent 1628043a8f
commit e380147046

@ -840,7 +840,7 @@ class Client(commandServer, encrypt):
# profile directory
fileConfig = os.path.join(self.homeDir, self.configFileServer)
pathProfile = os.path.join(rpath, osLinuxShort)
if not readFile(fileConfig).strip():
if readFile(fileConfig).strip():
return True,pathProfile
fileSoftConfigThis = os.path.join(pathProfile,
self.configFileSoft)
@ -1608,6 +1608,7 @@ class Client(commandServer, encrypt):
if not isMount(pathUnix):
self.printERROR(_("Mounted remote resources for user %s not found")%
self.userName)
self.umountUserRes(self.homeDir)
return False
try:
if self.sync:
@ -1709,12 +1710,17 @@ class Client(commandServer, encrypt):
"""
Unmount user directories
"""
res = True
for umountPath in self.getMountUserPaths(homeDir):
if not self.umountSleepPath(umountPath):
return False
try:
self.umountSleepPath(umountPath)
except ClientError as e:
self.printERROR(str(e))
res = False
continue
if os.path.exists(umountPath) and not os.listdir(umountPath):
os.rmdir(umountPath)
return True
return res
def getDefaultRunlevelDaemons(self):
"""

@ -119,7 +119,7 @@ class Wsdl:
@rpc(Integer, SyncInfo, _returns = Array(ReturnedMessage))
@core_method(category=__('Client'),title=__('Domain user login'),
image='applications-other',
gui=True,command='cl-client-sync-login',
gui=False,command='cl-client-sync-login',
rights=['domainuser'])
def client_sync_login(self, sid, info):
return self.callMethod(sid,info,method_name="client_sync_login",
@ -154,7 +154,7 @@ class Wsdl:
@rpc(Integer, SyncInfo, _returns = Array(ReturnedMessage))
@core_method(category=__('Client'),title=__('Domain user logout'),
image='applications-other',
gui=True,command='cl-client-sync-logout',
gui=False,command='cl-client-sync-logout',
rights=['domainuser'])
def client_sync_logout(self, sid, info):
return self.callMethod(sid,info,method_name="client_sync_logout",

@ -83,7 +83,7 @@ class VariableClRemotePw(Variable):
"""
Client password
"""
type = "password"
type = "onepassword"
opt = ["--domain-password"]
def init(self):

Loading…
Cancel
Save