|
|
|
@ -687,17 +687,24 @@ are not removed"))
|
|
|
|
|
if not foudHostSamba:
|
|
|
|
|
self.printERROR(_("Not found Samba server in %s")%domain)
|
|
|
|
|
return False
|
|
|
|
|
userPwd = False
|
|
|
|
|
if self.clVars.Get("cl_remote_host") and \
|
|
|
|
|
self.clVars.Get("cl_remote_host") != domain:
|
|
|
|
|
if not self.delDomain():
|
|
|
|
|
return False
|
|
|
|
|
# Создаем объект переменных (обновление переменных)
|
|
|
|
|
self.createClVars()
|
|
|
|
|
pwd = self.clVars.Get("cl_remote_pw")
|
|
|
|
|
if pwd:
|
|
|
|
|
userPwd = pwd
|
|
|
|
|
foundMountRemote =self.isMount("/var/calculate/remote" ,"cifs")
|
|
|
|
|
foundMountHome =self.isMount("/var/calculate/home" ,"none", False)
|
|
|
|
|
if foundMountRemote:
|
|
|
|
|
self.printWARNING(_("Samba resource [remote] mount") + \
|
|
|
|
|
" ...")
|
|
|
|
|
else:
|
|
|
|
|
userPwd = self.getUserPassword("Domain password for the desktop")
|
|
|
|
|
if not userPwd:
|
|
|
|
|
userPwd=self.getUserPassword("Domain password for the desktop")
|
|
|
|
|
pathRemote = "/var/calculate/remote"
|
|
|
|
|
pwdRemote = userPwd
|
|
|
|
|
if not os.path.exists(pathRemote):
|
|
|
|
|