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 */
154 /* Machine to Cluster mapping */
156 #define MAP_MACHINE 0
157 #define MAP_CLUSTER 1
160 /* NFS phys. queries. */
168 #define NFS_MODTIME 6
170 #define NFS_MODWITH 8
173 /* Printcap queries */
176 #define PCAP_SPOOL_HOST 1
177 #define PCAP_SPOOL_DIR 2
178 #define PCAP_RPRINTER 3
179 #define PCAP_QSERVER 4
182 #define PCAP_COMMENTS 7
183 #define PCAP_MODTIME 8
185 #define PCAP_MODWITH 10
188 /* Palladium queries */
198 /* PO box infomarion queries */
211 #define Q_DIRECTORY 4
220 #define SVC_SERVICE 0
221 #define SVC_INTERVAL 1
225 #define SVC_DFCHECK 5
228 #define SVC_INPROGRESS 8
229 #define SVC_HARDERROR 9
230 #define SVC_ERRMSG 10
231 #define SVC_ACE_TYPE 11
232 #define SVC_ACE_NAME 12
233 #define SVC_MODTIME 13
235 #define SVC_MODWITH 15
238 /* Service add/update */
241 #define SC_INTERVAL 1
246 #define SC_ACE_TYPE 6
247 #define SC_ACE_NAME 7
250 /* Service/host tuples */
255 #define SH_OVERRIDE 3
257 #define SH_INPROGRESS 5
258 #define SH_HOSTERROR 6
261 #define SH_LASTSUCCESS 9
265 #define SH_MODTIME 13
267 #define SH_MODWITH 15
270 /* Service/host tuple add & updates */
272 #define SHI_SERVICE 0
273 #define SHI_MACHINE 1
280 /* User Information queries */
292 #define U_SIGNATURE 10
299 /* User states (the value of argv[U_STATE] from a user query) */
301 #define US_NO_LOGIN_YET 0
302 #define US_REGISTERED 1
303 #define US_NO_PASSWD 2
305 #define US_NOT_ALLOWED 4
306 #define US_ENROLLED 5
307 #define US_ENROLL_NOT_ALLOWED 6
308 #define US_HALF_ENROLLED 7
311 /* User shell queries */
317 /* Zehpyr ACL queries */
320 #define ZA_XMT_TYPE 1
322 #define ZA_SUB_TYPE 3
324 #define ZA_IWS_TYPE 5
326 #define ZA_IUI_TYPE 7
330 #define ZA_MODWITH 11
335 /* Directories & files used on the server machine: */
337 #define SMS_DIR "/moira" /* home directory of the system */
338 #define BIN_DIR "/moira/bin" /* where progs live */
339 #define DCM_DIR "/moira/dcm" /* where DCM output files end up */
340 #define LOCK_DIR "/moira/dcm/locks" /* where DCM puts lock files */
342 #define CRITERRLOG "/moira/critical.log"
343 #define JOURNAL "/moira/journal"
344 #define REGJOURNAL "/moira/journal.reg"
345 #define NODCMFILE "/etc/nodcm" /* flag to inhibit DCM running */
346 #define MOIRA_MOTD_FILE "/etc/smsdown" /* make the server go to sleep */
349 #endif /* _moira_site_ */ /* Do not add anything after this line. */