2 * This file contains all definitions that allow easy access to
3 * elements returned by most of the @i[Moira] queries. It also defines
4 * the default server location and the directories used on the server.
6 * If the order of the arguments in the @i[Moira] queries change (again)
7 * then all that needs to be changed are the values of these items
8 * and all should be well, (hopefully :-).
10 * Chris D. Peterson - kit@athena
17 * Copyright 1988 by the Massachusetts Institute of Technology.
19 * For further information on copyright and distribution
20 * see the file mit-copyright.h
26 #include "mit-copyright.h"
28 /* Default Moira server to connect to */
29 #define MOIRA_SERVER "MOIRA.MIT.EDU:sms_db"
47 /* Cluster information queries */
57 /* Cluster Data information queries */
64 /* Delete Member from list queries. */
77 #define F_HOME_PHONE 4
78 #define F_OFFICE_ADDR 5
79 #define F_OFFICE_PHONE 6
100 #define FS_MODTIME 11
102 #define FS_MODWITH 13
105 /* Get List Of Member queries. */
108 #define GLOM_ACTIVE 1
109 #define GLOM_PUBLIC 2
110 #define GLOM_HIDDEN 3
111 #define GLOM_MAILLIST 4
115 /* Kerberos/User Map */
118 #define KMAP_PRINCIPAL 1
121 /* General List information Queries. */
138 /* List Member information queries. */
145 /* Machine information queries */
156 #define M_STAT_CHNG 8
159 #define M_OWNER_TYPE 11
160 #define M_OWNER_NAME 12
161 #define M_ACOMMENT 13
162 #define M_OCOMMENT 14
171 /* Machine to Cluster mapping */
173 #define MAP_MACHINE 0
174 #define MAP_CLUSTER 1
177 /* NFS phys. queries. */
185 #define NFS_MODTIME 6
187 #define NFS_MODWITH 8
190 /* Printcap queries */
193 #define PCAP_SPOOL_HOST 1
194 #define PCAP_SPOOL_DIR 2
195 #define PCAP_RPRINTER 3
196 #define PCAP_QSERVER 4
199 #define PCAP_COMMENTS 7
200 #define PCAP_MODTIME 8
202 #define PCAP_MODWITH 10
205 /* Palladium queries */
215 /* PO box infomarion queries */
228 #define Q_DIRECTORY 4
237 #define SVC_SERVICE 0
238 #define SVC_INTERVAL 1
242 #define SVC_DFCHECK 5
245 #define SVC_INPROGRESS 8
246 #define SVC_HARDERROR 9
247 #define SVC_ERRMSG 10
248 #define SVC_ACE_TYPE 11
249 #define SVC_ACE_NAME 12
250 #define SVC_MODTIME 13
252 #define SVC_MODWITH 15
255 /* Service add/update */
258 #define SC_INTERVAL 1
263 #define SC_ACE_TYPE 6
264 #define SC_ACE_NAME 7
267 /* Service/host tuples */
272 #define SH_OVERRIDE 3
274 #define SH_INPROGRESS 5
275 #define SH_HOSTERROR 6
278 #define SH_LASTSUCCESS 9
282 #define SH_MODTIME 13
284 #define SH_MODWITH 15
287 /* Service/host tuple add & updates */
289 #define SHI_SERVICE 0
290 #define SHI_MACHINE 1
306 #define SN_ACE_TYPE 7
307 #define SN_ACE_NAME 8
310 #define SN_MODWITH 11
313 /* User Information queries */
325 #define U_SIGNATURE 10
332 /* User states (the value of argv[U_STATE] from a user query) */
334 #define US_NO_LOGIN_YET 0
335 #define US_REGISTERED 1
336 #define US_NO_PASSWD 2
338 #define US_NOT_ALLOWED 4
339 #define US_ENROLLED 5
340 #define US_ENROLL_NOT_ALLOWED 6
341 #define US_HALF_ENROLLED 7
344 /* User shell queries */
350 /* Zehpyr ACL queries */
353 #define ZA_XMT_TYPE 1
355 #define ZA_SUB_TYPE 3
357 #define ZA_IWS_TYPE 5
359 #define ZA_IUI_TYPE 7
363 #define ZA_MODWITH 11
368 /* Directories & files used on the server machine: */
370 #define SMS_DIR "/moira" /* home directory of the system */
371 #define BIN_DIR "/moira/bin" /* where progs live */
372 #define DCM_DIR "/moira/dcm" /* where DCM output files end up */
373 #define LOCK_DIR "/moira/dcm/locks" /* where DCM puts lock files */
375 #define CRITERRLOG "/moira/critical.log"
376 #define JOURNAL "/moira/journal"
377 #define REGJOURNAL "/moira/journal.reg"
378 #define NODCMFILE "/etc/nodcm" /* flag to inhibit DCM running */
379 #define MOIRA_MOTD_FILE "/etc/smsdown" /* make the server go to sleep */
382 #endif /* _moira_site_ */ /* Do not add anything after this line. */