|
|
@ -1953,7 +1953,18 @@ or ld_bind_dn or ld_bind_pw")
|
|
|
|
skipDirs))==len(skipDirs):
|
|
|
|
skipDirs))==len(skipDirs):
|
|
|
|
pathNewProfile = os.path.join(pathOldProfile,".CLD")
|
|
|
|
pathNewProfile = os.path.join(pathOldProfile,".CLD")
|
|
|
|
# Копируем профиль в новое место
|
|
|
|
# Копируем профиль в новое место
|
|
|
|
self.copyProfileDir(pathNewProfile, pathOldProfile)
|
|
|
|
try:
|
|
|
|
|
|
|
|
self.copyProfileDir(pathNewProfile, pathOldProfile)
|
|
|
|
|
|
|
|
except:
|
|
|
|
|
|
|
|
self.printERROR(_("Error updating user profile"))
|
|
|
|
|
|
|
|
self.printERROR(_("path: %s")%pathNewProfile)
|
|
|
|
|
|
|
|
return False
|
|
|
|
|
|
|
|
pathNewProfile = os.path.join(pathOldProfile,
|
|
|
|
|
|
|
|
"." + osLinuxShort)
|
|
|
|
|
|
|
|
if not os.path.exists(pathNewProfile):
|
|
|
|
|
|
|
|
# Создаем директорию для хранения профиля
|
|
|
|
|
|
|
|
os.mkdir(pathNewProfile)
|
|
|
|
|
|
|
|
os.chmod(pathNewProfile, 0700)
|
|
|
|
return True
|
|
|
|
return True
|
|
|
|
|
|
|
|
|
|
|
|
def syncUser(self, userName, userHome, sync, uid, gid, progress=False,\
|
|
|
|
def syncUser(self, userName, userHome, sync, uid, gid, progress=False,\
|
|
|
|