dtprintinfo: Coverity 89561
[oweals/cde.git] / cde / programs / dtlogin / vgmsg.h
1 /*
2  * CDE - Common Desktop Environment
3  *
4  * Copyright (c) 1993-2012, The Open Group. All rights reserved.
5  *
6  * These libraries and programs are free software; you can
7  * redistribute them and/or modify them under the terms of the GNU
8  * Lesser General Public License as published by the Free Software
9  * Foundation; either version 2 of the License, or (at your option)
10  * any later version.
11  *
12  * These libraries and programs are distributed in the hope that
13  * they will be useful, but WITHOUT ANY WARRANTY; without even the
14  * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
15  * PURPOSE. See the GNU Lesser General Public License for more
16  * details.
17  *
18  * You should have received a copy of the GNU Lesser General Public
19  * License along with these libraries and programs; if not, write
20  * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
21  * Floor, Boston, MA 02110-1301 USA
22  */
23 /* $TOG: vgmsg.h /main/5 1998/03/04 19:29:00 mgreess $ */
24 /*                                                                      *
25  * (c) Copyright 1993, 1994 Hewlett-Packard Company                     *
26  * (c) Copyright 1993, 1994 International Business Machines Corp.       *
27  * (c) Copyright 1993, 1994 Sun Microsystems, Inc.                      *
28  * (c) Copyright 1993, 1994 Novell, Inc.                                *
29  */
30 /************************************<+>*************************************
31  ****************************************************************************
32  **
33  **   File:        vgmsg.h
34  **
35  **   Project:     HP Visual User Environment (DT)
36  **
37  **   Description: Header file for Dtgreet application.
38  **
39  **                _DtMessage catalog string numbers and default strings
40  **                are specified here. The default strings should match
41  **                the strings in the "C" message catalog.
42  **
43  **
44  **   (c) Copyright 1987, 1988, 1989 by Hewlett-Packard Company
45  **
46  **
47  **
48  ****************************************************************************
49  ************************************<+>*************************************/
50
51 #ifndef _VGMSG_H
52 #define _VGMSG_H
53
54
55 /****************************************************************************
56  *
57  *  Defines
58  *
59  ****************************************************************************/
60
61 #ifndef CDE_INSTALLATION_TOP
62 #define CDE_INSTALLATION_TOP "/opt/dt"
63 #endif
64
65 #ifdef sun
66 #define FBCONSOLE               "/usr/openwin/bin/fbconsole"
67 #define OWPATH_ENV              "OPENWINHOME=/usr/openwin"
68 #endif
69
70 /*
71  *  message catalog id numbers...
72  */
73 #define MC_LABEL_SET            1
74 #define MC_LOGIN_LABEL          1
75 #define MC_PASSWD_LABEL         2
76 #define MC_OK_LABEL             3
77 #define MC_CLEAR_LABEL          4
78 #define MC_OPTIONS_LABEL        5
79 #define MC_HELP_LABEL           6
80 #define MC_RS_LABEL             7
81 #define MC_NW_LABEL             8
82 #define MC_COPY_LABEL           9
83 /* #define MC_FS_LABEL          10 */
84 #define MC_LANG_LABEL           11
85 #define MC_START_LABEL          12
86 #define MC_CANCEL_LABEL         13
87 #define MC_HELP_LABEL_2         14
88 #define MC_DTLITE_LABEL 15
89 #define MC_GREET_LABEL          16
90 #define MC_DT_LABEL             17
91 #define MC_SUS1_LABEL           18
92 #define MC_SUS2_LABEL           19
93 #define MC_SUS3_LABEL           20
94 #define MC_RES_LABEL            21
95 #define MC_START_LBLDPY         22
96 #define MC_WAIT_LABEL           23
97 #define MC_X_LABEL              24
98 #define MC_SES_LABEL            25
99 #define MC_PERS_GREET_LABEL     26
100 #define MC_FS_LABEL             27
101
102 /*
103  *  Sun specific message catalog id numbers in MC_LABEL_SET messages.
104  *  (Starting at a random uneven higher number to allow some room  
105  *  for some shared sample source message additions. 
106  */
107 #define MC_USER_DT_LABEL        73
108 #define MC_TO_LABEL             74
109
110
111 #define MC_ERROR_SET            2
112 #define MC_LOGIN                1
113 #define MC_HOME                 2
114 #define MC_MAX_USERS            3
115 #define MC_PASSWD_EXPIRED       4
116 #define MC_BAD_UID              5
117 #define MC_BAD_GID              6
118 #define MC_BAD_AID              7
119 #define MC_BAD_AFLAG            8
120 #define MC_NO_LOGIN             9
121 #define MC_BAD_ROOT             10
122 #define MC_LOG_REBUILD          11
123 #define MC_LOG_RESCAN           12
124 #define MC_LOG_REREADCFG        13
125 #define MC_LOG_REREADSRV        14
126 #define MC_LOG_REREADACC        15
127 #define MC_NO_MEMORY            16
128
129 #define MC_HELP_SET             3
130 #define MC_HELP                 1
131 #define MC_SYSTEM               2
132 #define MC_HELP_CHOOSER         3
133
134 #define MC_LOG_SET              4
135 #define MC_LOG_ACC_FILE         1
136 #define MC_LOG_HOST_ENT         2
137 #define MC_LOG_ACC_DPY          3
138 #define MC_LOG_ACC_CTL          4
139 #define MC_LOG_DOMAIN           5
140 #define MC_LOG_SRV_OPEN         6
141 #define MC_LOG_SRV_WRT          7
142 #define MC_LOG_SAVE_ADDR        8
143 #define MC_LOG_NET_CFG          9
144 #define MC_LOG_SET_AUTH         10
145 #define MC_LOG_LCK_AUTH         11
146 #define MC_LOG_NOT_AUTH         12
147 #define MC_LOG_NO_CREATE        13
148 #define MC_LOG_NO_LOCK          14
149 #define MC_LOG_NO_SRVACC        15
150 #define MC_LOG_NEW_DPY          16
151 #define MC_LOG_NO_ERRLOG        17
152 #define MC_LOG_MAX_LOGFILE      18
153 #define MC_LOG_MISS_NAME        19
154 #define MC_LOG_MISS_TYPE        20
155 #define MC_LOG_INV_HOSTNM       21
156 #define MC_LOG_BAD_DPYTYPE      22
157 #define MC_LOG_PSEUDO           23
158 #define MC_LOG_GET_RSC          24
159 #define MC_LOG_NO_SPACE         25
160 #define MC_LOG_NO_OPENCFG       26
161 #define MC_LOG_EXTRA_ARG        27
162 #define MC_LOG_NO_ARGS          28
163 #define MC_LOG_NO_EXESRV        29
164 #define MC_LOG_FAIL_FORK        30
165 #define MC_LOG_SRV_DIED         31
166 #define MC_LOG_HUNG_DPY         32
167 #define MC_LOG_FAIL_SRVOPEN     33
168 #define MC_LOG_FATAL_IO         34
169 #define MC_LOG_X_ERR            35
170 #define MC_LOG_FAIL_START       36
171 #define MC_LOG_NO_SECDPY        37
172 #define MC_LOG_NO_SECKEY        38
173 #define MC_LOG_NO_BLSACCT       39
174 #define MC_LOG_NO_BLSPACCT      40
175 #define MC_LOG_NO_VFYLVL        41
176 #define MC_LOG_NO_BLSUSR        42
177 #define MC_LOG_AFS_FAIL         43
178 #define MC_LOG_FAIL_SETUID      44
179 #define MC_LOG_NO_HMDIR         45
180 #define MC_LOG_SES_EXEFAIL      46
181 #define MC_LOG_NO_CMDARG        47
182 #define MC_LOG_NO_SESFORK       48
183 #define MC_LOG_NO_KILLCL        49
184 #define MC_LOG_NO_EXE           50
185 #define MC_LOG_NO_FORK          51
186 #define MC_LOG_IMPROP_AUTH      52
187 #define MC_LOG_NO_DTGREET       53
188 #define MC_LOG_NO_FORKCG        54
189 #define MC_LOG_FAIL_SOCK        55
190 #define MC_LOG_ERR_BIND         56
191 #define MC_LOG_MAKEENV          57
192 #define MC_LOG_SETENV           58
193 #define MC_LOG_PARSEARGS        59
194 #define MC_LOG_NO_SCAN          60
195 #define MC_LOG_MORE_GRP         61
196 #define MC_LOG_NOT_SUSER        62
197 #define MC_LOG_INV_EVENT        63
198 #define MC_LOG_ERR_ERRNO        64
199 #define MC_LOG_AFS_FAILATH      65
200 #define MC_LOG_ACC_EXP          66
201 #define MC_LOG_DEADSRV          67
202 #define MC_LOG_NO_LOGOBIT       68
203 #define MC_LOG_NO_MSGCAT        69
204 #define MC_LOG_NO_DPYINIT       70
205 #define MC_LOG_BAD_MATTE        71
206 #define MC_LOG_BAD_HMATTE       72
207
208 #define MC_CHOOSER_SET          5
209 #define MC_CHOOSER_TITLE        1
210 #define MC_CHOOSER_HEADING      2
211 #define MC_UPDATE_LABEL         3
212
213
214 /*
215  *  message catalog default strings...
216  */
217
218 #define MC_DEF_LOGIN_LABEL      "Please enter your user name"
219 #define MC_DEF_PASSWD_LABEL     "Please enter your password"
220 #define MC_DEF_OK_LABEL         "OK"
221 #define MC_DEF_CLEAR_LABEL      "Start Over"
222 #define MC_DEF_OPTIONS_LABEL    "Options"
223 #define MC_DEF_HELP_LABEL       "Help"
224 #define MC_DEF_RS_LABEL         "Reset Login Screen"
225 #define MC_DEF_NW_LABEL         "Command Line Login"
226 #define MC_DEF_COPY_LABEL       "Version..."
227 #define MC_DEF_FS_LABEL         "Failsafe Session"
228 #define MC_DEF_USER_DT_LABEL    "User's Last Desktop"
229 #define MC_DEF_LANG_LABEL       "Language"
230 #define MC_DEF_TO_LABEL         "to"
231 #define MC_DEF_START_LABEL      "Start DT"
232 #define MC_DEF_CANCEL_LABEL     "Cancel"
233 #define MC_DEF_DTLITE_LABEL     "DT Lite Session"
234 #define MC_DEF_GREET_LABEL      "Welcome to"
235 #define MC_DEF_PERS_GREET_LABEL "Welcome %s"
236 #define MC_DEF_DT_LABEL         "Regular Desktop"
237 #define MC_DEF_SES_LABEL        "Session"
238
239 #define MC_DEF_LOGIN            "Login incorrect; please try again."
240 #define MC_DEF_HOME             "Unable to change to home directory."
241 #define MC_DEF_MAX_USERS        "Sorry. Maximum number of users already logged in."
242 #define MC_DEF_BAD_UID          "Login error, invalid user id."
243 #define MC_DEF_BAD_GID          "Login error, invalid group id."
244 #define MC_DEF_BAD_AID          "Login error, invalid audit id."
245 #define MC_DEF_BAD_AFLAG        "Login error, invalid audit flag."
246 #define MC_DEF_NO_LOGIN         "Logins are currently disabled."
247
248
249 #define MC_DEF_PASSWD_EXPIRED   \
250 "\n\
251 You need to choose an initial password for your account,\n\
252 or your current password has expired.\n\
253 \n\
254 After you set your password, you must log in again\n\
255 using the new password.\
256 "
257
258     
259 /*
260  *  default help message...
261  */
262
263 #define MC_DEF_HELP     \
264 "\n\
265 Login Help:\n\
266 \n\
267 Use the login screen to identify yourself to the computer.\n\
268 \n\
269 To log in:\n\
270        1) Type your user name and press <Enter> or click [OK].\n\
271           (if you have not created a user, enter \"root\" as the\n\
272           user name)\n\
273        2) Type your password and press <Enter> or click [OK].\n\
274 \n\
275 [Start Over]\n\
276    Erases your entries so you can re-enter your user name and\n\
277    try again.\n\
278 \n\
279 [Options]\n\
280    Allows you to change session options:\n\
281 \n\
282    With the mouse pointer over the [Options] button, press and\n\
283    hold mouse button 1.  Drag the pointer through the choices.\n\
284    Releasing the mouse button with the pointer on an item will\n\
285    select that item. You may choose:\n\
286 \n\
287    Language - to change the session language\n\
288    Session - to select preferred user Desktop\n\
289       Current - Starts your most recent session\n\
290       Home - Starts your home session (if you set one)\n\
291       <display-name> - Current - starts your most recent session for\n\
292           the given display\n\
293       <display-name> - Home - starts your home session for\n\
294           the given display\n\
295       FailSafe Session - Starts a failsafe session.\n\
296    Command Line Login - to switch to a command line environment\n\
297    Reset Login Screen - to restart the X-server\n\
298 \n\
299 Click anywhere on the background with any mouse button to\n\
300 refresh the screen, for example, if system messages make the\n\
301 screen unreadable.\n\
302 \n\
303 For more help information, log in first, then click on the Help\n\
304 Manager icon that is in the Information Manager slide-up menu\n\
305 in the Front Panel (Book with an information symbol).\n\
306 Then find the Login Manager help volume.\n\
307 "
308
309 /*
310  *  system name set to "unknown" message...
311  */
312 #define MC_DEF_SYSTEM   \
313 "\n\
314 Your workstation does not have a unique name. It is currently\n\
315 set to \"unknown\". It is recommended that you name this\n\
316 workstation.\n\
317 "          
318 #define MC_DEF_HELP_CHOOSER \
319 "\n\
320 Chooser Help:\n\
321 \n\
322 Use the chooser screen to choose which server to log into.\n\
323 \n\
324 The chooser screen contains a list that has 2 parts for each\n\
325 entry.  The first part (Server Name) contains the network\n\
326 name for each available server.  The second part (Server\n\
327 Information) will contain different information depending on\n\
328 what login manager is being run on each server.  If a server\n\
329 is running the CDE Desktop, it should provide information\n\
330 about the number of users (or tty devices) currently in use,\n\
331 and load averages (average CPU usage) for the last 5, 10, and\n\
332 15 minutes.\n\
333 \n\
334 To choose a server to log into, just select the line in the\n\
335 list that contains the name of the server you wish.\n\
336 \n\
337 Once you have made your selection, press the ok button.\n\
338 This will bring up a login screen from the server you selected.\n\
339 \n\
340 [Update List]\n\
341    This will clear the list and rebuild it by querying the\n\
342    servers on the network to see if they will allow logins.\n\
343 \n\
344 [Options]\n\
345    Allows you to change session options:\n\
346 \n\
347    With the mouse pointer over the [Options] button, press and\n\
348    hold mouse button 1.  Drag the pointer through the choices.\n\
349    Releasing the mouse button with the pointer on an item will\n\
350    select that item. You may choose:\n\
351 \n\
352    Language - to change the session language\n\
353    Reset Login Screen - to restart the X-server\n\
354 \n\
355 Click anywhere on the background with any mouse button to\n\
356 refresh the screen, for example, if system messages make the\n\
357 screen unreadable.\n\
358 \n\
359 "
360  
361
362 #define MC_DEF_SUS1_LABEL       "* Suspending Desktop Login...\r\n*\r\n"
363 #define MC_DEF_SUS2_LABEL       "* Press [Enter] for a login prompt.\r\n*\r\n"
364 #define MC_DEF_SUS3_LABEL       "* Log in. Desktop Login will resume shortly after you log out.\r\n*\r\n"
365 #define MC_DEF_RES_LABEL        "* Resuming Desktop Login...\r\n*\r\n"
366 #define MC_DEF_START_LBLDPY     "* Starting Desktop Login on display %1$s...\r\n*\r\n"
367 #define MC_DEF_WAIT_LABEL       "* Wait for the Desktop Login screen before logging in.\r\n*\r\n"
368 #define MC_DEF_X_LABEL          "* The X-server can not be started on display %1$s...\r\n*\r\n"
369
370 #define MC_DEF_BAD_ROOT         "Only root wants to run %1$s\n"
371 #define MC_DEF_LOG_REBUILD      "Rebuilding default language list from %1$s\n"
372 #define MC_DEF_LOG_RESCAN       "Rescanning both config and servers files\n"
373 #define MC_DEF_LOG_REREADCFG    "Rereading configuration file %1$s\n"
374 #define MC_DEF_LOG_REREADSRV    "Rereading servers file %1$s\n"
375 #define MC_DEF_LOG_REREADACC    "Rereading access file %1$s\n"
376 #define MC_DEF_NO_MEMORY        "dtlogin: out of memory in routine\n"
377
378
379 #define MC_DEF_LOG_ACC_FILE     "Access file \"%1$s\", host \"%2$s\" not found\n"
380 #define MC_DEF_LOG_HOST_ENT     "ReadHostEntry\n"
381 #define MC_DEF_LOG_ACC_DPY      "Access file %1$2s, display %1$2s unknown\n"
382 #define MC_DEF_LOG_ACC_CTL      "Cannot open access control file %1$s, no XDMCP requests will be granted\n"
383 #define MC_DEF_LOG_DOMAIN       "Domain/OS authentication error: %1$s (%2$s/%3$s)"
384 #define MC_DEF_LOG_SRV_OPEN     "Can not open server authorization file %1$s\n"
385 #define MC_DEF_LOG_SRV_WRT      "Cannot write server authorization file %1$s\n"
386 #define MC_DEF_LOG_SAVE_ADDR    "saveAddr"
387 #define MC_DEF_LOG_NET_CFG      "Trouble getting network interface configuration"
388 #define MC_DEF_LOG_SET_AUTH     "setAuthNumber"
389 #define MC_DEF_LOG_LCK_AUTH     "Can not lock authorization file %1$s or backup %2$s\n"
390 #define MC_DEF_LOG_NOT_AUTH     "Can not move authorization into place\n"
391 #define MC_DEF_LOG_NO_CREATE    "Can not create/lock pid file %1$s\n"
392 #define MC_DEF_LOG_NO_LOCK      "Can not lock pid file %1$s, another Dtlogin is running (pid %2$d)\n"
393 #define MC_DEF_LOG_NO_SRVACC    "Can not access servers file %1$s\n"
394 #define MC_DEF_LOG_NEW_DPY      "NewDisplay"
395 #define MC_DEF_LOG_NO_ERRLOG    "Can not open errorLogFile %1$s\n"
396 #define MC_DEF_LOG_MAX_LOGFILE  "TrimErrorLog(): maximum size of error log file is 200Kb.\n"
397 #define MC_DEF_LOG_MISS_NAME    "Missing display name in servers file\n"
398 #define MC_DEF_LOG_MISS_TYPE    "Missing display type for %1$s\n"
399 #define MC_DEF_LOG_INV_HOSTNM   "Hostname %1$s is invalid. Setting DISPLAY to ':0'\n"
400 #define MC_DEF_LOG_BAD_DPYTYPE  "Unacceptable display type %1$s for display %2$s\n"
401 #define MC_DEF_LOG_PSEUDO       "Pseudo reset timed out.\n"
402 #define MC_DEF_LOG_GET_RSC      "GetResource"
403 #define MC_DEF_LOG_NO_SPACE     "no space for argument realloc\n"
404 #define MC_DEF_LOG_NO_OPENCFG   "Can not open configuration file %1$s\n"
405 #define MC_DEF_LOG_EXTRA_ARG    "Extra arguments on command line:"
406 #define MC_DEF_LOG_NO_ARGS      "StartServer(): no arguments\n"
407 #define MC_DEF_LOG_NO_EXESRV    "Server %1$s cannot be executed\n"
408 #define MC_DEF_LOG_FAIL_FORK    "StartServer() fork failed, sleeping\n"
409 #define MC_DEF_LOG_SRV_DIED     "Server unexpectedly died\n"
410 #define MC_DEF_LOG_HUNG_DPY     "Hung in XOpenDisplay(%1$s) attempt #%2$d, aborting.\n"
411 #define MC_DEF_LOG_FAIL_SRVOPEN "Server open attempt #%1$d failed for %2$s, giving up\n"
412 #define MC_DEF_LOG_FATAL_IO     "Fatal IO error %d (%1$s)\n"
413 #define MC_DEF_LOG_X_ERR        "X error\n"
414 #define MC_DEF_LOG_FAIL_START   "Session start failed\n"
415 #define MC_DEF_LOG_NO_SECDPY    "WARNING: display %1$s could not be secured\n"
416 #define MC_DEF_LOG_NO_SECKEY    "WARNING: keyboard on display %1$s could not be secured\n"
417 #define MC_DEF_LOG_NO_BLSACCT   "BLS - Could not obtain account information.\n"
418 #define MC_DEF_LOG_NO_BLSPACCT  "BLS - Could not obtain protected account information.\n"
419 #define MC_DEF_LOG_NO_VFYLVL    "BLS - Could not verify sensitivity level.\n"
420 #define MC_DEF_LOG_NO_BLSUSR    "BLS - Could not change to user: %1$s.\n"
421 #define MC_DEF_LOG_AFS_FAIL     "AFS - setgroups() failure when starting session\n"
422 #define MC_DEF_LOG_FAIL_SETUID  "Setuid failed for user %s, errno = %d\n"
423 #define MC_DEF_LOG_NO_HMDIR     "No home directory %1$s for user %2$s, using /\n"
424 #define MC_DEF_LOG_SES_EXEFAIL  "Session execution failed %1$s\n"
425 #define MC_DEF_LOG_NO_CMDARG    "Session has no command/arguments\n"
426 #define MC_DEF_LOG_NO_SESFORK   "Can not start session for %s, fork failed\n"
427 #define MC_DEF_LOG_NO_KILLCL    "Dtlogin can not kill client\n"
428 #define MC_DEF_LOG_NO_EXE       "Can not execute %1$s\n"
429 #define MC_DEF_LOG_NO_FORK      "Can not fork to execute %1$s\n"
430 #define MC_DEF_LOG_IMPROP_AUTH  "Improper authentication name \"%1$s\". Use AFS, Kerberos or the default.\n"
431 #define MC_DEF_LOG_NO_DTGREET   "Can not execute Dtgreet %1$s for %2$s\n"
432 #define MC_DEF_LOG_NO_FORKCG    "Can not fork to execute Dtgreet %1$s\n"
433 #define MC_DEF_LOG_FAIL_SOCK    "Socket creation failed on port %1$d\n"
434 #define MC_DEF_LOG_ERR_BIND     "error binding socket address %1$d, errno = %2$d\n"
435 #define MC_DEF_LOG_MAKEENV      "makeEnv"
436 #define MC_DEF_LOG_SETENV       "setEnv"
437 #define MC_DEF_LOG_PARSEARGS    "parseArgs"
438 #define MC_DEF_LOG_NO_SCAN      "Scan of %1$s directory exceeded %2$d seconds. Terminating scan...\n"
439 #define MC_DEF_LOG_MORE_GRP     "%s belongs to more than %1$d groups, %2$s ignored\n"
440 #define MC_DEF_LOG_NOT_SUSER    "audwrite() error: caller is not superuser\n"
441 #define MC_DEF_LOG_INV_EVENT    "audwrite() error: invalid event number in audit record.\n"
442 #define MC_DEF_LOG_ERR_ERRNO    "audwrite() error: errno = %1$d\n"
443 #define MC_DEF_LOG_AFS_FAILATH  "AFS authentication failure: %1$s\n"
444 #define MC_DEF_LOG_ACC_EXP      "Account for %1$s has expired. Please see your System Administrator.\n"
445 #define MC_DEF_LOG_DEADSRV      "Server dead  %1$s\n"
446 #define MC_DEF_LOG_NO_LOGOBIT   "Can't open logo bitmap file: %1$s\n"
447 #define MC_DEF_LOG_NO_MSGCAT    "cannot read \"%1$s\" message catalog. Using default language."
448 #define MC_DEF_LOG_NO_DPYINIT   "display %1$s could not be initialized, server may be grabbed.\n"
449 #define MC_DEF_LOG_BAD_MATTE    "(%1$s): Login matte width exceeds display, using default. Matte units are pixels.\n"
450 #define MC_DEF_LOG_BAD_HMATTE   "(%1$s) Login matte height exceeds display, using default.  Matte units are pixels.\n"
451
452 #define MC_DEF_CHOOSER_TITLE  "Select a server to log into:"
453 #define MC_DEF_CHOOSER_HEADING        "Server Name                    Server Information"
454 #define MC_DEF_UPDATE_LABEL   " Update List "
455
456 #endif /* _VGMSG_H */