Astra Linux Directory Client Core API
1.7.0
Титульная страница
Группы
Пространства имен
Классы
Файлы
Файлы
Список членов всех файлов
Указатель
Классы
Пространства имен
Файлы
Функции
Переменные
Определения типов
Перечисления
Элементы перечислений
Макросы
Группы
Страницы
msg-definitions.h
См. документацию.
1
6
#ifndef ALD_MSG_DEFINITIONS
7
#define ALD_MSG_DEFINITIONS
8
9
#include "
ALDUtils.h
"
10
11
namespace
ALD
12
{
19
// universal common messages
21
#define OBJ_USER _C("user")
22
#define OBJ_GROUP _C("group")
23
#define OBJ_POLICY _C("policy")
24
#define OBJ_DOMAIN _C("domain")
25
#define OBJ_TASK _C("task")
26
#define OBJ_EVTASK _C("event")
27
#define OBJ_SERVICE _C("service")
28
#define OBJ_SGROUP _C("service group")
29
#define OBJ_HGROUP _C("host group")
30
#define OBJ_HOST _C("host")
31
#define OBJ_OBJECT _C("object")
32
#define OBJ_ADMGROUP _C("group of administrators")
33
#define OBJ_DOMAIN_LOG_CFG _C("domain log configuration")
34
#define OBJ_TD _C("trusted domain")
35
#define OBJ_DNS _C("DNS name")
36
#define OBJ_DOCUMENT _C("document")
37
38
#define OBJ_WITH_ID _C("with ID")
39
40
#define OBJNAME(obj, name) string((!name.empty() && isdigit(name[0])) ? string(OBJ_WITH_ID)+" "+name : "'"+name+"'")
41
44
#define DESC_CANCELED _C("Action cancelled.")
46
47
#define ERR_BAD_NAME(obj, name, desc) FMTSTR(3, _C("Incorrect name of object %s '%s'.%s"), obj, name.c_str(), desc)
48
49
#define WARN_NOT_FOUND(obj, name) FMTSTR(2, _C("Object %s %s not found."), obj, \
50
OBJNAME(obj, name).c_str())
51
#define WARN_EXISTS(obj, name) FMTSTR(2, _C("Object %s %s already exists."), obj, \
52
OBJNAME(obj, name).c_str())
53
#define WARN_REMOVE(obj, name, desc) FMTSTR(3, _C("You are going to remove object %s %s.%s"), obj, \
54
OBJNAME(obj, name).c_str(), desc)
55
#define ERR_ADDITION(obj, name) FMTSTR(3, _C("Failed to create object %s %s. %s"), obj, \
56
OBJNAME(obj, name).c_str(), DESC_CANCELED)
57
#define ERR_DELETION(obj, name) FMTSTR(3, _C("Failed to remove object %s %s. %s"), obj, \
58
OBJNAME(obj, name).c_str(), DESC_CANCELED)
59
#define ERR_MODIFICATION(obj, name) FMTSTR(3, _C("Failed to modify object %s %s. %s"), obj, \
60
OBJNAME(obj, name).c_str(), DESC_CANCELED)
61
62
#define WARN_DELETION(obj, name) FMTSTR(2, _C("Not all conditions are satisfied for the removal " \
63
"of object %s %s. Action cancelled."), obj, OBJNAME(obj, name).c_str())
64
65
#define MSG_CREATE_OBJECT(obj, name) FMTSTR(2, _C("Creating object %s %s"), obj, \
66
OBJNAME(obj, name).c_str())
67
68
#define MSG_UPDATE_OBJECT(obj, name) FMTSTR(2, _C("Modifying object %s %s"), obj, \
69
OBJNAME(obj, name).c_str())
70
71
#define MSG_REMOVE_OBJECT(obj, name) FMTSTR(2, _C("Removing object %s %s"), obj, \
72
OBJNAME(obj, name).c_str())
73
74
#define MSG_OBJECT_LOADING(obj, name) FMTSTR(2, _C("Loading object %s '%s..."), obj, \
75
name.c_str())
76
77
#define MSG_OBJECT_LOADED(obj, name) FMTSTR(2, _C("Object %s '%s' is loaded."), obj, \
78
name.c_str())
79
80
#define ERR_OBJECT_LOADING(obj, name, msg) FMTSTR(3, _C("Failed to load object '%s:%s': %s."), \
81
obj.c_str(), name.c_str(), msg)
82
83
#define ERR_INVALID_PROP_ID(obj, id) FMTSTR(2, _C("Unknown object %s property ID (%d)"), obj, id)
84
85
#define DESC_EMPTY ""
86
#define FMT_USER_NAME _C("\nShould contain lower case latin letters, numbers, '-', '_' and be less " \
87
"than 32 characters. Should start with a letter.")
88
#define FMT_GROUP_NAME _C("\nShould contain latin letters, numbers, '-', '_', ' ' and be less " \
89
"than 32 characters. Should start with a letter.")
90
#define FMT_SGROUP_NAME FMT_GROUP_NAME
91
#define FMT_HGROUP_NAME FMT_GROUP_NAME
92
#define FMT_POLICY_NAME _C("\nShould contain latin letters, digits, minus and underscore chars.")
93
#define FMT_SERVICE_NAME _C("\nShould have form 'service/host'. Where 'service' should contain " \
94
"lower case latin letters, numbers, '-', '_' and be less " \
95
"than 32 characters. Should start with a letter.")
96
#define FMT_HOST_NAME _C("\nMay contain latin letters, digits, '-', '.'. " \
97
"Should be short or fully qualified domain name. " \
98
"Should not start with a period(.).")
99
#define FMT_DOMAIN_NAME _C("\nMay contain latin letters, digits, '-', '.'. " \
100
"Must have prefix of a period(.).")
101
102
#define FMT_DNS_NAME _C("\nMay contain maximum 255 octets with maximum 63 octets between separators.")
103
104
// messages for principals
105
106
#define WARN_PRINCIPAL_NOT_FOUND(obj, name) FMTSTR(3, _C("Kerberos principal for %s '%s' not found. %s"), \
107
obj, name.c_str(), WARN_POSSIBLE_INTEGRITY_ERROR)
108
109
#define WARN_PRINCIPAL_WITHOUT_OBJ(obj, name) FMTSTR(3, _C("Kerberos principal for %s '%s' exists. %s"), \
110
obj, name.c_str(), WARN_POSSIBLE_INTEGRITY_ERROR)
111
112
#define WARN_PRINCIPAL_EXISTS(user) FMTSTR(1, _C("Kerberos principal '%s' already exists."), \
113
user.c_str())
114
115
// messages for user manipulation
116
117
#define ERR_MULTIPLE_USERS(user) FMTSTR(1, _C("Multiple users with the same name or uid '%s'."), user.c_str())
118
119
#define MSG_SCHEDULED_UPDATE_DELAYED _C("\nNOTE. Some parameters (like user priveledges or home directory) " \
120
"will be updated in a minute by 'aldd' daemon.\n")
121
122
#define ASK_REMOVE_PRIMARY_GROUP(group) FMTSTR(1, _C("The primary group '%s' of the deleted user is empty.\n" \
123
"Remove it?"), group.c_str())
124
125
#define ASK_DEFAULT_PASSWORD _C("Enter default password for a user")
126
#define ASK_USER_PASSWORD(user) FMTSTR(1, _C("Enter new password for user '%s'"), user.c_str())
127
128
#define ERR_INVALID_UID(uid, muid) FMTSTR(2, _C("Invalid user identification number %d. Must be more than mimimum uid %d."), \
129
uid, muid)
130
131
#define WARN_USERPOLICY_NOTEQUAL(user, pol1, pol2) FMTSTR(3, _C("Policy for user '%s' doesn't match in LDAP ('%s') vs Kerberos ('%s')."), \
132
user.c_str(), pol1.c_str(), pol2.c_str())
133
// messages for group manipulation
134
135
#define ERR_MULTIPLE_GROUPS(group) FMTSTR(1, _C("Multiple groups with the same name or gid '%s'."), group.c_str())
136
137
#define ERR_PRIMARY_MEMBERS_EXIST(group, members) FMTSTR(2, _C("Group '%s' is referred by primary members:\n" \
138
"%s\n" \
139
"Modify these users, so they don't refer to this group."), group.c_str(), members.c_str())
140
141
#define WARN_GROUP_RM _C("\nAll members of this group will lose their membership, but will remain " \
142
"in the database. Delete them manually if needed.")
143
144
#define WARN_MEMBERS_ALREADY_EXIST(grp, mems) FMTSTR(2, _C("The following user(s) is(are) already member(s) of group '%s':\n" \
145
"%s"), grp.c_str(), mems.c_str())
146
147
#define WARN_ALREADY_PRIMARY_MEMBERS(grp, mems) FMTSTR(2, _C("The following user(s) is(are) already primary member(s) of " \
148
"group '%s':\n" \
149
"%s"), grp.c_str(), mems.c_str())
150
151
#define WARN_GROUP_REMOVE_MEMBERS_NOT_EXIST(grp, mems) FMTSTR(2, _C("The following user(s) is(are) not secondary member(s) of " \
152
"group '%s':\n" \
153
"%s"), grp.c_str(), mems.c_str())
154
155
#define ERR_INVALID_GID(gid, mgid) FMTSTR(2, _C("Invalid group identification number %d. Must be more than mimimum gid %d."), \
156
gid, mgid)
157
// messages for policy manipulation
158
159
#define ERR_MULTIPLE_POLICIES(policy) FMTSTR(1, _C("Multiple policies with the same name '%s'."), policy.c_str())
160
161
#define ERR_POLICY_USED(policy, users) FMTSTR(2, _C("Unable to remove policy '%s', because it is used by the users:\n" \
162
"%s\n" \
163
"Modify these users not to use this policy."), policy.c_str(), users.c_str())
164
165
#define ERR_INVALID_LIFETIME(name) FMTSTR(1, _C("Incorrect lifetime parameter '%s'. " \
166
"Should be in form: NNd (for days) or NNh (for hours) or NNm (for minutes)."), \
167
name)
168
169
#define WARN_KRBPOLICY_NOT_FOUND(name) FMTSTR(2, _C("Kerberos policy '%s' not found. %s"), \
170
name.c_str(), WARN_POSSIBLE_INTEGRITY_ERROR)
171
172
#define WARN_POLICY_EXISTS(policy) FMTSTR(1, _C("Kerberos policy '%s' already exists."), \
173
policy.c_str())
174
175
#define WARN_KRBPOLICY_WITHOUT_OBJ(name) FMTSTR(2, _C("Kerberos policy '%s' exists. %s"), \
176
name.c_str(), WARN_POSSIBLE_INTEGRITY_ERROR)
177
178
#define WARN_ALDKRBPOLICY_NOTEQUAL(name, info) FMTSTR(2, _C("Policy '%s' doesn't match in LDAP vs Kerberos.%s"), \
179
name.c_str(), (string(" ")+info).c_str())
180
181
// messages for service manipulation
182
183
#define ERR_SYSTEM_SERVICE(service) FMTSTR(1, _C("Service '%s' is a system or host service."), service.c_str())
184
185
#define WARN_SYSTEM_SERVICE_RM(service) FMTSTR(1, _C("%s\nRemoving system services will lead to incorrect work of ALD.\n" \
186
"To remove 'host/', 'cifs/' and 'nfs/' services use 'host-rm' command.\n"), \
187
ERR_SYSTEM_SERVICE(service))
188
189
// messages for service group manipulation
190
191
#define ERR_MULTIPLE_SGROUPS(sgroup) FMTSTR(1, _C("Multiple service groups with the same name '%s'."), sgroup.c_str())
192
193
#define WARN_SGROUP_RM _C("\nAll members of this service group will lose their membership, but will remain " \
194
"in the database. Delete them manually if needed.")
195
196
// messages for administrators group manipulation
197
198
#define ERR_MULTIPLE_AGROUPS FMTSTR(1, _C("Multiple groups of administrators. %s"), \
199
WARN_POSSIBLE_INTEGRITY_ERROR)
200
201
// messages for domain log configuration manipulation
202
203
#define ERR_MULTIPLE_LOG_CFGS FMTSTR(1, _C("Multiple domain log configurations. %s"), \
204
WARN_POSSIBLE_INTEGRITY_ERROR)
205
206
#define MSG_LOG_TPL_ALTER(tpl) FMTSTR(1, _C("alter log template '%s'"), tpl.c_str())
207
#define MSG_LOG_DEST_ALTER(dest) FMTSTR(1, _C("alter log destination '%s'"), dest.c_str())
208
209
// messages for host group manipulation
210
211
#define ERR_MULTIPLE_HGROUPS(hgroup) FMTSTR(1, _C("Multiple host groups with the same name '%s'."), hgroup.c_str())
212
213
#define WARN_HGROUP_RM _C("\nAll members of this host group will lose their membership, but will remain " \
214
"in the database. Delete them manually if needed.")
215
216
// messages for host manipulation
217
218
#define ERR_MULTIPLE_HOSTS(host) FMTSTR(1, _C("Multiple hosts with the same name '%s'."), host.c_str())
219
220
// messages for document manipulation
221
222
#define ERR_MULTIPLE_DOCS(doc) FMTSTR(1, _C("Multiple documents with the same name '%s'."), doc.c_str())
223
224
// messages for domain manipulation
225
226
#define ERR_MULTIPLE_DOMAINS(domain) FMTSTR(1, _C("Multiple domains with the same name '%s'."), domain.c_str())
227
228
#define WARN_NO_LDAP_CONNECT _C("No connect to LDAP server or ALD database not initialized.")
229
230
#define ERR_DB_NOT_INITIALIZED _C("Astra Linux Directory database is not initialized.\n" \
231
"Run 'ald-init init' command or restore from backup.")
232
233
#define ERR_DB_HAS_DIFFERENT_DOMAIN(dom1, dom2) FMTSTR(2, _C("Astra Linux Directory database domain '%s' " \
234
"mismatches domain in 'ald.conf' file '%s'.\n" \
235
"Create new database with 'ald-init init' command " \
236
"or use 'backup-ldif' and 'restore-backup-ldif' commands to change domain."), \
237
dom1.c_str(), dom2.c_str())
238
239
#define ERR_DB_INVALID_REALM(krb5realm, domain) FMTSTR(2, _C("Astra Linux Directory misconfigured. Kerberos realm '%s' " \
240
"doesn't correspond domain in 'ald.conf' file '%s'.\n" \
241
"Create new database with 'ald-init init' command " \
242
"or use 'backup-ldif' and 'restore-backup-ldif' commands to change domain."), \
243
krb5realm.c_str(), domain.c_str())
244
245
#define ERR_INVALID_TASK_HISTORY(val) FMTSTR(1, _C("Invalid task history parameter '%s'.\n" \
246
"Task history parameter should be > 2 and < 2000."), val.c_str())
247
248
#define ERR_INVALID_DOMAIN_PARAMETER(prm, val) FMTSTR(2, _C("Domain parameter '%s' has invalid value '%s'."), prm, \
249
val.c_str())
250
251
#define ERR_INVALID_VERSION(clntver, srvver) FMTSTR(2, _C("Client version '%s' doesn't match server version '%s'."), \
252
clntver.c_str(), srvver.c_str())
253
254
// messages for task
255
256
#define ERR_MULTIPLE_TASKS(TaskID) FMTSTR(1, _C("Multiple tasks with the same ID '%s'."), TaskID.c_str())
257
258
#define ERR_INVALID_TASK_ID(TaskID) FMTSTR(1, _C("Invalid task id '%s'."), TaskID.c_str())
259
260
// messages for host
261
262
#define ERR_BAD_HOST_NAME(name, desc) FMTSTR(2, _C("Incorrect host name '%s'.%s"), name.c_str(), desc)
263
264
#define ERR_BAD_HOST_LOCALHOST _C("Host name 'localhost' is prohibited.")
265
266
#define ERR_BAD_HOST_DOMAIN(host, domain) FMTSTR(2, _C("Incorrect domain in host name '%s'.\n" \
267
"A host name should be a short name or fully qualified name ending with " \
268
"'%s' domain"), host.c_str(), domain.c_str())
269
// messages for daemons
270
271
#define MSG_SERVICE_MANAGE(svc, op) FMTSTR(2, _C("Manage service %s %s..."), svc.c_str(), op.c_str())
272
273
#define MSG_SERVICE_STOP(svc) FMTSTR(1, _C("Stopping service %s..."), svc.c_str())
274
275
#define MSG_SERVICE_START(svc) FMTSTR(1, _C("Starting service %s..."), svc.c_str())
276
277
#define MSG_SERVICE_RESTART(svc) FMTSTR(1, _C("Restarting service %s..."), svc.c_str())
278
279
#define MSG_SERVICE_RELOAD(svc) FMTSTR(1, _C("Reload service %s..."), svc.c_str())
280
281
#define MSG_SERVICE_INSTALL(svc) FMTSTR(1, _C("Install System-V style init script links " \
282
"for service %s..."), svc.c_str())
283
284
#define MSG_SERVICE_REMOVE(svc) FMTSTR(1, _C("Remove System-V style init script links " \
285
"for service %s..."), svc.c_str())
286
287
#define WARN_SERVICE_MANAGE(svc) FMTSTR(2, _C("Script '/etc/init.d/%s' returned code %d."), \
288
svc.c_str())
289
290
#define ERR_UNKNOWN_SERVICE_OPERATION _C("Unknown service management operation.")
291
292
#define ERR_SERVICE_OPERATION(svc, op, err) FMTSTR(3, _C("Failed to %s service %s. " \
293
"Exit status %d."), op, svc.c_str(), err)
294
295
#define ERR_SERVICE_INSTALL_OPERATION(svc, op, err) FMTSTR(3, _C("Failed to %s System-V style init script links " \
296
"for service %s. Exit status %d."), op, svc.c_str(), err)
297
298
// common messages
299
300
#define PROCEED _C("Proceed?")
301
#define WARN_PROCEED _C("Are you SURE to PROCEED?")
302
303
#define ALL_CORRECT _C("All correct?")
304
305
#define ERR_PATH_SYNTAX(path) FMTSTR(1, _C("Incorrect path '%s'.\n" \
306
"Should be an absolute path. Should not contain any exotic characters.\n" \
307
"Characters allowed: latin letters, digits, '-', '_'.\n" \
308
"Constructs like '..' and '//' are not allowed."), path.c_str())
309
310
#define ERR_BAD_GECOS(gecos) FMTSTR(1, _C("Incorrect GECOS parameter '%s'.\n" \
311
"Format: user_full_name,[room_number],[phone],[home_phone][,other]\n" \
312
"Allowed: letters, digits, space, -.+()_ characters."), gecos.c_str())
313
314
#define ERR_BAD_HOME_FS(homefs, fss) FMTSTR(2, _C("Incorrect home FS type '%s'.\n" \
315
"Supported FS: %s"), homefs.c_str(), fss.c_str())
316
317
#define PROMPT_GECOS _C("Enter GECOS field (user_full_name,[room_number],[phone],[home_phone][,other])\n" \
318
"Allowed: letters, digits, space, -.+()_ characters.\n" \
319
"GECOS")
320
321
#define ERR_MUTUAL_OPTIONS(opt1, opt2) FMTSTR(2, _C("Options '--%s' and '--%s' are mutual exclusive."), opt1, opt2)
322
323
#define ERR_NEITHER_OPTIONS(opt1, opt2) FMTSTR(2, _C("Neither '--%s' nor '--%s' option is specified."), opt1, opt2)
324
325
#define ERR_OPTION_NEEDED(opt) FMTSTR(1, _C("Option '--%s' is needed."), opt)
326
327
#define WARN_NOTHING_TO_DO(cmd) FMTSTR(1, _C("Nothing to do for '%s' command."), cmd.c_str())
328
329
#define ERR_ARG_OPT_CONFLICT(cmd) FMTSTR(1, _C("Argument conflicts with an option in '%s' command."), cmd.c_str())
330
331
#define ERR_INVALID_OPTION_ARGUMENT(opt) FMTSTR(1, _C("Invalid argument format for option '%s'."), opt.c_str())
332
333
#define WARN_POSSIBLE_INTEGRITY_ERROR _C("\nPossible integrity error.\n" \
334
"Invoke 'test-integrity' command " \
335
"and/or try to reinvoke the current command after fixing problems.")
336
337
#define ERR_IN_PASSFILE(file, line) FMTSTR(2, _C("%s:%d: Parse error in password file.\n" \
338
"All lines should have format 'user:password'.\n" \
339
"'user' may have format of Kerberos principal (w/o realm), " \
340
"(e.g. 'admin/admin', 'K/M') or Unix user (lower case latin " \
341
"letters, numbers, '-', '_', should be less 32 chars). " \
342
"Should start with a letter."), file.c_str(), line)
343
344
#define ERR_PASSFILE_PERM(file, perm) FMTSTR(2, _C("Password file '%s' has dangerous permissions (%o).\n" \
345
"This may be a security hole. Password file should have 0600 mode."), \
346
file.c_str(), perm)
347
348
#define ERR_NO_PASSWORD(user) FMTSTR(1, _C("No password for user '%s' was found in password file " \
349
"or no --pass-file option was specified. In 'force' mode passwords should " \
350
"be transferred only via a password file."), user.c_str())
351
352
#define ERR_DUP_PASSWORD(user) FMTSTR(1, _C("Password for user '%s' meet twice in password file."), user.c_str())
353
354
#define ERR_CHANGE_PASSWORD(user) FMTSTR(1, _C("Failed to change password for user '%s'."), user.c_str())
355
356
#define WARN_INSUFFICIENT_ACCESS _C("Insufficient access. The user should have administrator privilege.")
357
358
#define ERR_INVALID_CONFIG_PARAMETER(prm, val) FMTSTR(2, _C("Configuration parameter '%s' has invalid value '%s'."), prm, \
359
val.c_str())
360
361
#define ERR_INVALID_ATTRIBUTE_VALUE(obj, name, attr, val) FMTSTR(4, _C("Attribute '%s' of %s '%s' has invalid value '%s'."), \
362
attr, obj, name.c_str(), val.c_str())
363
364
#define ERR_EMPTY_ARGUMENT FMTSTR(1, _C("Argument is empty for '%s'."), __FUNCTION__)
365
366
#define ERR_INTERNAL_COMMAND(cmd) FMTSTR(1, _C("Command '%s' is for internal use only.\n" \
367
"Do not call it explicitly."), cmd.c_str())
368
369
#define ERR_INVALID_USAGE(app) FMTSTR(1, _C("Invalid usage of %s."), app.c_str())
370
371
#define WARN_NOT_ALL_CONDITION(cmd) FMTSTR(1, _C("Not all conditions are satisfied for %s"), cmd.c_str())
372
373
#define INFO_EXEC_COMMAND(cmd) FMTSTR(1, _C("Executing '%s' command..."), cmd)
374
375
#define ERR_UNKNOWN_COMMAND(cmd) FMTSTR(1, _C("Unknown command '%s'."), cmd)
376
377
#define ERR_UNKNOWN_OPTION(opt) FMTSTR(1, _C("Unknown option '%s'."), opt)
378
379
#define WARN_NOTHING_TO_UNINSTALL _C("Directory '/etc/ald' is not found.\n" \
380
"Astra Linux Directory is already uninstalled.")
381
382
#define ERR_FAILED_TO_OPEN_DIR(dir) FMTSTR(1, _C("Failed to open directory '%s'."), dir.c_str())
383
384
#define ERR_FAILED_TO_OPEN_FILE(filename) FMTSTR(1, _C("Failed to open file '%s'."), filename.c_str())
385
386
#define ERR_FAILED_TO_CREATE_FILE(filename) FMTSTR(1, _C("Failed to create file '%s'."), filename.c_str())
387
388
#define ERR_FILE_SAVE(filename) FMTSTR(1, _C("Failed to save file '%s'."), filename.c_str())
389
390
#define ERR_NOT_IMPLEMENTED(feature) FMTSTR(1, _C("Feature '%s' is not inplemented."), feature)
391
392
#define ERR_ALD_NOT_CONFIGURED(cfg) FMTSTR(1, _C("Astra Linux Directory is not configured.\n" \
393
"Fill config file '%s' correctly."), cfg.c_str())
394
395
#define ERR_INVALID_HOST_TYPE(type) FMTSTR(1, _C("Invalid host type %d."), type)
396
397
#define ERR_FILE_NOT_EXISTS(filename) FMTSTR(1, _C("File '%s' doesn't exists."), filename.c_str())
398
399
#define ERR_ROLLING_BACK_TRANSACTION _C("ERROR occurred during complex transaction. Rolling back...")
400
401
#define ERR_UNEXPECTED FMTSTR(4, _C("Unexpected error %d in %s:%u - %s()"), errno, ExtractFileName(__FILE__), __LINE__, __FUNCTION__)
402
403
#define ERR_NAME_RESOLUTION(err) FMTSTR(1, _C("Incorrect setup of name resolution system.\n%s"), err)
404
405
#define ERR_STAT(file) FMTSTR(1, _C("Error stat '%s':%m"), file.c_str())
406
407
#define MSG_INTEGRITY_OK _C("ok")
408
#define MSG_INTEGRITY_ERR _C("error")
409
#define MSG_INTEGRITY_WARN _C("warning")
410
#define MSG_INTEGRITY_FIXED _C("fixed")
411
#define ERR_INTEGRITY(err) FMTSTR(1, _C("-- INTEGRITY ERROR:\n%s\n--"), err)
412
413
#define ERR_INVALID_OBJECT _C("ALD object isn't valid.")
414
#define MSG_INSTALL_EXTENSION(ext) FMTSTR(1, _C("Installing ALD exstension: %s..."), ext)
415
416
#define ERR_ALD_ABSTRACT_OBJECT _C("Invalid usage of the CALDObject. It is an abstract base class!")
417
418
#define MSG_GROUP_MEMBER_ADD(member) FMTSTR(1, _C("adding member '%s'"), member.c_str())
419
#define MSG_GROUP_MEMBER_RM(member) FMTSTR(1, _C("removing member '%s'"), member.c_str())
420
421
#define WARN_NOT_SUPPORTED_CM _C("This operation is not supported in the compatibility mode.")
422
423
#define WARN_FILE_EXISTS(path) FMTSTR(1, _C("File %s already exists."), path.c_str())
424
425
#define ERR_MODULE_LOADING _C("Module isn't loaded.")
426
427
#define MSG_DISABLED _C("Disabled")
428
429
#define MSG_TRUSTED_CHANGES _C("\nNOTE. Trusted relationships changes require reconfiguration on clients.\n" \
430
"This can be done by 'ald-client restart' command.")
431
432
#define WARN_TRUSTED_REMOVING _C("\nRemoving trusted relationships requires changes on server " \
433
"and can be done in a minute by 'aldd' daemon.\n")
434
435
#define WARN_KRB_ACL_CHANGES _C("Kerberos ACL may be changed. Don't forget invoke 'admin-apply' command.")
436
437
#define ERR_RPC_INVALID_ARGUMENTS _C("Invalid arguments for RPC command.")
438
439
#define ERR_RPC_PROTOCOL _C("RPC Protocol error.")
440
441
#define ERR_FORK(reason) FMTSTR(1, _C("Failed to fork. %s"), reason)
442
443
#define ERR_EMPTY_FIELD(field) FMTSTR(1, _C("Field '%s' can't be empty."), field)
444
445
#define INFO_DC_DETECTED(domain, server) FMTSTR(2, _C("ALD server for domain '%s' detected on '%s'."), domain.c_str(), server.c_str())
446
#define WARN_DC_NOTDETECTED(domain) FMTSTR(1, _C("ALD server for domain '%s' not detected."), domain.c_str())
447
448
#define WARN_RESTART _C("Also while executing this command - LDAP, Kerberos, NFS/Samba and some other services may be stopped and restarted.")
449
450
#define INFO_STAT_OPTION _C(" --stat - displays operational info.")
451
454
455
}
// ALD
456
457
#endif // ALD_MSG_DEFINITIONS
ALDUtils.h
Объявление вспомогательных типов и функций общего назначения
src
include
msg-definitions.h
Документация по Astra Linux Directory Client Core API. Последние изменения: Вс 21 Фев 2016 23:49:37. Создано системой
1.8.7