|
|
|
@ -114,7 +114,7 @@ class ClClientSyncLoginAction(Action):
|
|
|
|
|
'cl_client_profile_name,ur_uid,ur_gid)',
|
|
|
|
|
'condition':lambda Get:Get('cl_client_sync_replication_set') == 'on',
|
|
|
|
|
'else_message':__("The local user profile does not "
|
|
|
|
|
"need to be synchronized with remote domain")
|
|
|
|
|
"need to be synchronized with the remote domain")
|
|
|
|
|
},
|
|
|
|
|
# монтируем профиль локального домена, если локальный профиль
|
|
|
|
|
# старее удаленного доменного или актуальный профиль
|
|
|
|
@ -133,7 +133,7 @@ class ClClientSyncLoginAction(Action):
|
|
|
|
|
'ur_gid,ur_home_path,"unix",cl_client_profile_name)',
|
|
|
|
|
'condition':lambda Get:Get('cl_client_sync_local_set') == 'on',
|
|
|
|
|
'else_message':__("The local user profile does not "
|
|
|
|
|
"need to be synchronized with local domain")
|
|
|
|
|
"need to be synchronized with the local domain")
|
|
|
|
|
},
|
|
|
|
|
# ошибка синхронизации с локальным доменом
|
|
|
|
|
{'name':'local_sync_error',
|
|
|
|
@ -151,7 +151,7 @@ class ClClientSyncLoginAction(Action):
|
|
|
|
|
'method':'Client.waitingArchFile(cl_client_pack_time,'
|
|
|
|
|
'cl_client_profile_name,"remote_profile")',
|
|
|
|
|
'failed_warning':__("Failed to find the profile "
|
|
|
|
|
"archive from {cl_replication_host}")
|
|
|
|
|
"archive of {cl_replication_host}")
|
|
|
|
|
},
|
|
|
|
|
# распаковать архив из удаленного домена и удалить
|
|
|
|
|
# файлы которые отсутствуют в удаленном профиле
|
|
|
|
@ -185,8 +185,8 @@ class ClClientSyncLoginAction(Action):
|
|
|
|
|
# синхронизировать локальный профиль с локальным доменом
|
|
|
|
|
# как запасной профиль
|
|
|
|
|
{'name':'pack_remote:fallback_warning',
|
|
|
|
|
'warning':__("Error synchronizing with the remote server "
|
|
|
|
|
"{cl_replication_host}"),
|
|
|
|
|
'warning':__("Error synchronizing with the "
|
|
|
|
|
"{cl_replication_host} remote server"),
|
|
|
|
|
'depend': ~Tasks.success_one_of('unpack_profile','sync_remote')
|
|
|
|
|
},
|
|
|
|
|
{'name':'pack_remote:fallback_sync',
|
|
|
|
@ -201,7 +201,7 @@ class ClClientSyncLoginAction(Action):
|
|
|
|
|
# сообщение о том, что будет использоваться запасной профиль
|
|
|
|
|
# с локального домена
|
|
|
|
|
{'name':'fallback_sync!:fallback_success',
|
|
|
|
|
'message': __("Get a user fallback profile from the "
|
|
|
|
|
'message': __("Got a user fallback profile from the "
|
|
|
|
|
"{cl_remote_host} domain")
|
|
|
|
|
},
|
|
|
|
|
# ошибка синхронизации профиль не готов! к использованию
|
|
|
|
@ -228,7 +228,7 @@ class ClClientSyncLoginAction(Action):
|
|
|
|
|
# во время синхронизации профиля произошли ошибки, которые не
|
|
|
|
|
# гарантируют целостность профиля
|
|
|
|
|
{'name':'domain_sync:error_sync',
|
|
|
|
|
'warning':__("Changings in the user profile will not "
|
|
|
|
|
'warning':__("User profile modifications will not "
|
|
|
|
|
"be saved to the domain"),
|
|
|
|
|
'method':'Client.setSyncStatus(ur_home_path,ur_uid,ur_gid,"error")',
|
|
|
|
|
'depend': Tasks.hasnot('success_sync','failed')
|
|
|
|
@ -263,14 +263,14 @@ class ClClientSyncLogoutAction(Action):
|
|
|
|
|
},
|
|
|
|
|
# проверка на попытку отключить ресурсы пользователя в X сессии
|
|
|
|
|
{'name':'domain_user:in_xsession',
|
|
|
|
|
'error':__("User {ur_login} is already in X session"),
|
|
|
|
|
'error':__("User {ur_login} is already on the X session"),
|
|
|
|
|
'condition':lambda Get:Get('ur_login') in \
|
|
|
|
|
Get('desktop.cl_desktop_online_user'),
|
|
|
|
|
},
|
|
|
|
|
# проверить наличие домашней директории
|
|
|
|
|
{'name':'domain_user:check_homedir',
|
|
|
|
|
'condition':lambda Get:path.exists(Get('ur_home_path')),
|
|
|
|
|
'else_error':__("User home directory {ur_home_path} not found"),
|
|
|
|
|
'else_error':__("Home directory {ur_home_path} not found"),
|
|
|
|
|
},
|
|
|
|
|
# проверить наличие подключенных ресурсов
|
|
|
|
|
{'name':'domain_user:check_mount',
|
|
|
|
@ -286,11 +286,11 @@ class ClClientSyncLogoutAction(Action):
|
|
|
|
|
{'name':'domain_user:domain_sync',
|
|
|
|
|
'condition':lambda Get:Get('cl_client_sync_status') == 'success' and
|
|
|
|
|
Get('cl_client_sync') == 'on',
|
|
|
|
|
'else_warning':__("The profile will not be uploaded to domain")
|
|
|
|
|
'else_warning':__("The profile will not be uploaded to the domain")
|
|
|
|
|
},
|
|
|
|
|
# переместить файлы из профиля в Moved
|
|
|
|
|
{'name':'domain_user:move_home_dir',
|
|
|
|
|
'message':__("Moving non-profile files to Home/Moved directory"),
|
|
|
|
|
'message':__("Moving non-profile files to the Home/Moved directory"),
|
|
|
|
|
'method':'Client.moveHomeDir(ur_home_path,"Moved","homes",'
|
|
|
|
|
'cl_moved_skip_path)',
|
|
|
|
|
},
|
|
|
|
|