* For copying and distribution information, please see the file
* <mit-copyright.h>.
*
- * This program dumps the SMS database to a series of output files
- * which can be later read back into SMS in the event of a crash.
+ * This program dumps the Moira database to a series of output files
+ * which can be later read back into Moira in the event of a crash.
*
*/
static char rcsid_module_c[] = "$Header$";
#endif
-/* This is the file attach.c for the MOIRA Client, which allows a nieve
- * user to quickly and easily maintain most parts of the MOIRA database.
+/* This is the file attach.c for the Moira Client, which allows users
+ * to quickly and easily maintain most parts of the Moira database.
* It Contains: Functions for maintaining data used by Hesiod
* to map courses/projects/users to their file systems,
* and maintain filesys info.
static char rcsid_module_c[] = "$Header$";
#endif
-/* This is the file cluster.c for the MOIRA Client, which allows a nieve
- * user to quickly and easily maintain most parts of the MOIRA database.
+/* This is the file cluster.c for the Moira Client, which allows users
+ * to quickly and easily maintain most parts of the Moira database.
* It Contains:
*
* Created: 4/22/88
-/* This is the file defs.h for the SMS Client, which allows a nieve
- * user to quickly and easily maintain most parts of the SMS database.
+/* This is the file defs.h for the Moira Client, which allows users
+ * to quickly and easily maintain most parts of the Moira database.
* It Contains: useful definitions.
*
* Created: 4/12/88
static char rcsid_module_c[] = "$Header$";
#endif
-/* This is the file delete.c for the MOIRA Client, which allows a nieve
- * user to quickly and easily maintain most parts of the MOIRA database.
+/* This is the file delete.c for the Moira Client, which allows users
+ * to quickly and easily maintain most parts of the Moira database.
* It Contains: functions for deleting users and lists.
*
* Created: 5/18/88
/* Function Name: DeleteList
* Description: deletes a list
- * Arguments: argc, argv - standard MR argc and argv.
+ * Arguments: argc, argv - standard Moira argc and argv.
* Returns: DM Status Code.
*/
-/* This is the file f_defs.h for the SMS Client, which allows a
- * user to quickly and easily maintain most parts of the SMS database.
+/* This is the file f_defs.h for the Moira Client, which allows users
+ * to quickly and easily maintain most parts of the Moira database.
* It Contains: useful definitions.
*
* Created: 4/12/88
int Print(); /* Prints out array of strings. */
int PrintByType(); /* Prints out array of strings by type. */
int PrintHelp(); /* Prints out help information. */
-int StoreInfo(); /* Stores info returned from and SMS query
+int StoreInfo(); /* Stores info returned from a Moira query
in a queue. */
int Scream(); /* Query Return function that yells if called*/
int ToggleVerboseMode(); /* Turns on and off the verbose variable. */
static char rcsid_module_c[] = "$Header$";
#endif
-/* This is the file globals.c for the Moira Client, which allows a nieve
- * user to quickly and easily maintain most parts of the Moira database.
+/* This is the file globals.c for the Moira Client, which allows users
+ * to quickly and easily maintain most parts of the Moira database.
* It Contains: globals variable definitions.
*
* Created: 4/12/88
-/* This is the file globals.h for the SMS Client, which allows a nieve
- * user to quickly and easily maintain most parts of the SMS database.
+/* This is the file globals.h for the Moira Client, which allows users
+ * to quickly and easily maintain most parts of the Moira database.
* It Contains: globals variable definitions.
*
* Created: 4/12/88
#include "mit-copyright.h"
#include "defs.h"
-#ifndef _sms_client_globals_
-#define _sms_client_globals_
+#ifndef _moira_client_globals_
+#define _moira_client_globals_
extern Bool verbose; /* TRUE if verbose mode is active (default). */
extern Bool found_some; /* used by lists.c for determining if there
program. */
extern char *program_name; /* The name of this instance of the program. */
-#endif /* _sms_client_globals_ */ /* Do Not Add Anything After This Line */
+#endif /* _moira_client_globals_ */ /* Do Not Add Anything After This Line */
static char rcsid_module_c[] = "$Header$";
#endif
-/* This is the file lists.c for the MOIRA Client, which allows a nieve
- * user to quickly and easily maintain most parts of the MOIRA database.
+/* This is the file lists.c for the Moira Client, which allows users
+ * to quickly and easily maintain most parts of the Moira database.
* It Contains: All list manipulation functions, except delete.
*
* Created: 4/12/88
static char rcsid_module_c[] = "$Header$";
#endif
-/* This is the file main.c for the Moira Client, which allows a nieve
- * user to quickly and easily maintain most parts of the Moira database.
+/* This is the file main.c for the Moira Client, which allows users
+ * to quickly and easily maintain most parts of the Moira database.
* It Contains: The main driver for the Moira Client.
*
* Created: 4/12/88
static char rcsid_module_c[] = "$Header$";
#endif
-/* This is the file menus.c for the MOIRA Client, which allows a nieve
- * user to quickly and easily maintain most parts of the MOIRA database.
+/* This is the file menus.c for the Moira Client, which allows users
+ * to quickly and easily maintain most parts of the Moira database.
* It Contains: All menu definitions.
*
* Created: 4/11/88
-/* This is the file misc.c for the MOIRA Client, which allows a naieve
- * user to quickly and easily maintain most parts of the MOIRA database.
+/* This is the file misc.c for the Moira Client, which allows a naieve
+ * to quickly and easily maintain most parts of the Moira database.
* It Contains:
* TableStats
* ShowClients
/* Function Name: TableStats
- * Description: display the MOIRA table statistics
+ * Description: display the Moira table statistics
* Arguments: NONE
* Returns: DM_NORMAL
*/
static char rcsid_module_c[] = "$Header$";
#endif
-/* This is the file main.c for the Moira Client, which allows a nieve
- * user to quickly and easily maintain most parts of the Moira database.
+/* This is the file main.c for the Moira Client, which allows users
+ * to quickly and easily maintain most parts of the Moira database.
* It Contains: The main driver for the Moira Client.
*
* Created: 4/12/88
static char rcsid_module_c[] = "$Header$";
#endif
-/* This is the file nfs.c for the MOIRA Client, which allows a nieve
- * user to quickly and easily maintain most parts of the MOIRA database.
+/* This is the file nfs.c for the Moira Client, which allows users
+ * to quickly and easily maintain most parts of the Moira database.
* It Contains: All functions for manipulating NFS Physical directories.
*
* Created: 5/6/88
static char rcsid_module_c[] = "$Header$";
#endif
-/* This is the file pobox.c for the MOIRA Client, which allows a nieve
- * user to quickly and easily maintain most parts of the MOIRA database.
+/* This is the file pobox.c for the Moira Client, which allows users
+ * to quickly and easily maintain most parts of the Moira database.
* It Contains: Functions for handling the poboxes.
*
* Created: 7/10/88
static char rcsid_module_c[] = "$Header$";
#endif
-/* This is the file printer.c for the MOIRA Client, which allows a nieve
- * user to quickly and easily maintain most parts of the MOIRA database.
+/* This is the file printer.c for the Moira Client, which allows users
+ * to quickly and easily maintain most parts of the Moira database.
* It Contains: Functions for handling the printers.
*
* Created: 8/16/88
static char rcsid_module_c[] = "$Header$";
#endif
-/* This is the file quota.c for the MOIRA Client, which allows a nieve
- * user to quickly and easily maintain most parts of the MOIRA database.
+/* This is the file quota.c for the Moira Client, which allows users
+ * to quickly and easily maintain most parts of the Moira database.
* It Contains: Functions for manipulating the quota information.
*
* Created: 7/10/88
static char rcsid_module_c[] = "$Header$";
#endif
-/* This is the file user.c for the MOIRA Client, which allows a nieve
- * user to quickly and easily maintain most parts of the MOIRA database.
+/* This is the file user.c for the Moira Client, which allows users
+ * to quickly and easily maintain most parts of the Moira database.
* It Contains: Functions for manipulating user information.
*
* Created: 5/9/88
static char rcsid_module_c[] = "$Header$";
#endif
-/* This is the file utils.c for the MOIRA Client, which allows a nieve
- * user to quickly and easily maintain most parts of the MOIRA database.
+/* This is the file utils.c for the Moira Client, which allows users
+ * to quickly and easily maintain most parts of the Moira database.
* It Contains: Many useful utility functions.
*
* Created: 4/25/88
}
/* Function Name: StoreInfo
- * Description: Stores information from an moira query into a queue.
+ * Description: Stores information from a moira query into a queue.
* Arguments: argc, argv, - information returned from the query returned
* in argv.
* data - the previous element on the queue, this data will be
/* Function Name: Print
* Description: prints out all the arguments on a single line.
- * Arguments: argc, argv - the standard MR arguments.
+ * Arguments: argc, argv - the standard Moira arguments.
* callback - the callback function - NOT USED.
* Returns: MR_CONT
*/
/*
- * Verify that all MOIRA updates are successful
+ * Verify that all Moira updates are successful
*
* Copyright 1988, 1991 by the Massachusetts Institute of Technology.
* For copying and distribution information, see the file "mit-copyright.h".
#endif
/*
- * Talk to the MOIRA database to change a person's home mail machine. This may
+ * Talk to the Moira database to change a person's home mail machine. This may
* be an Athena machine, or a completely arbitrary address.
*
* chpobox with no modifiers reports the current mailbox.
#include <ctype.h>
#include <errno.h>
-/* MOIRA includes */
+/* Moira includes */
#include <moira.h>
#include <moira_site.h>
#include "mit-copyright.h"
}
/*
- * given a canonicalized machine name, ask the MR server if it is of type
+ * given a canonicalized machine name, ask the Moira server if it is of type
* pop, or of type local -- if neither, we assume that it's of type foreign.
*/
char *potype(char *machine)
#endif
/*
- * Talk to the MOIRA database to change a person's login shell. The chosen
+ * Talk to the Moira database to change a person's login shell. The chosen
* shell must exist. A warning will be issued if the shell is not in
* /etc/shells.
*
#include <ctype.h>
#include <errno.h>
-/* MOIRA includes */
+/* Moira includes */
#include <moira.h>
#include <moira_site.h>
#include "mit-copyright.h"
int status; /* general purpose exit status */
int q_argc; /* argc for mr_query */
char *q_argv[U_END]; /* argv for mr_query */
- char *motd; /* determine MR server status */
+ char *motd; /* determine Moira server status */
int got_one = 0; /* have we got a new shell yet? */
char shell[BUFSIZ]; /* the new shell */
if (hp == NULL)
return UNKNOWN_HOST;
- sp = getservbyname("sms_ureg", "udp");
+ sp = getservbyname("moira_ureg", "udp");
if (sp == NULL)
return UNKNOWN_SERVICE;
sigemptyset(&action.sa_mask);
sigaction(SIGCHLD, &action, NULL);
- sprintf(buf, "%s/%s.log", SMS_DIR, PROG);
+ sprintf(buf, "%s/%s.log", MOIRA_DIR, PROG);
logf = open(buf, O_CREAT | O_WRONLY | O_APPEND, 0640);
if (logf < 0)
{
set path=(/etc /bin /usr/bin /usr/etc /usr/athena/etc)
# The following exit codes are defined and MUST BE CONSISTENT with the
-# MR error codes the library uses:
+# error codes the library uses:
set MR_HESFILE = 47836472
set MR_MISSINGFILE = 47836473
set MR_NAMED = 47836475
# This script installs new directories on NFS servers.
# The following exit codes are defined and MUST BE CONSISTENT with the
-# MR error codes the library uses:
+# error codes the library uses:
set MR_PROTO = 47836477
set path=(/etc /bin /usr/bin /usr/etc)
set dev=$1
# Checking for /etc/enforce_quota is transitional code and should be
-# removed when the SMS database has an accurate understanding of what
+# removed when the Moira database has an accurate understanding of what
# everyone's quotas are.
if ( -f /etc/enforce_quota ) then
while (1)
if (argc == 2)
{
sprintf(cmd, "cd %s; cp %s/nfs/* .; tar cf %s .",
- nfs_dir, SMS_DIR, argv[1]);
+ nfs_dir, MOIRA_DIR, argv[1]);
if (system(cmd))
exit(MR_TAR_FAIL);
}
# $Header$
# The following exit codes are defined and MUST BE CONSISTENT with the
-# MR error codes the library uses:
+# error codes the library uses:
set MR_NOCRED = 47836470
set MR_MKCRED = 47836474
set MR_TARERR = 47836476
mkdir $SRC_DIR
chmod 755 $SRC_DIR
-# Note that since MR is going to be exported, assuming .MIT.EDU is
+# Note that since Moira is going to be exported, assuming .MIT.EDU is
# incorrect. For now however, it is probably not worth the effort
# to canonicalize the hostname, especially with the upcoming update
# protocol redesign
PATH="/etc:/bin:/usr/bin:/usr/etc:/usr/athena/etc"
# The following exit codes are defined and MUST BE CONSISTENT with the
-# MR error codes the library uses:
+# error codes the library uses:
set MR_MISSINGFILE = 47836473
set MR_TARERR = 47836476
#include "mit-copyright.h"
/* Default Moira server to connect to */
-#define MOIRA_SERVER "MOIRA.MIT.EDU:sms_db"
+#define MOIRA_SERVER "MOIRA.MIT.EDU:moira_db"
#define NAME 0
/* Directories & files used on the server machine: */
-#define SMS_DIR "/moira" /* home directory of the system */
+#define MOIRA_DIR "/moira" /* home directory of the system */
#define BIN_DIR "/moira/bin" /* where progs live */
#define DCM_DIR "/moira/dcm" /* where DCM output files end up */
#define LOCK_DIR "/moira/dcm/locks" /* where DCM puts lock files */
char *instructions; /* script pathname */
};
-extern char sms_data_dir[];
-
#define log_DEBUG 0
#define log_INFO 1
#define log_WARNING 2
#define log_ERROR 3
-#define SERVICE_NAME "sms_update"
+#define SERVICE_NAME "moira_update"
#define UPDATE_BUFSIZ BUFSIZ
+++ /dev/null
-This directory (will contain) (contains) the client and server RPC
-code for SMS.
-
-Eventually, we can put the client code into a separate library, and
-merge the server stuff into the main sources.
-
-
*/
#ifndef lint
-static char *rcsid_sms_access_c = "$Header$";
+static char *rcsid_mr_access_c = "$Header$";
#endif
#include <mit-copyright.h>
*/
#ifndef lint
-static char *rcsid_sms_auth_c = "$Header$";
+static char *rcsid_mr_auth_c = "$Header$";
#endif
#include <mit-copyright.h>
#include <krb_et.h>
#include <string.h>
-/* Authenticate this client with the MR server. prog is the name of the
+/* Authenticate this client with the Moira server. prog is the name of the
* client program, and will be recorded in the database.
*/
*/
#ifndef lint
-static char *rcsid_sms_call_c = "$Header$";
+static char *rcsid_mr_call_c = "$Header$";
#endif
#include <mit-copyright.h>
*/
#ifndef lint
-static char *rcsid_sms_connect_c = "$Header$";
+static char *rcsid_mr_connect_c = "$Header$";
#endif
#include <mit-copyright.h>
/*
* Open a connection to the mr server. Looks for the server name
* 1) passed as an argument, 2) in environment variable, 3) by hesiod
- * 4) compiled in default (from sms_app.h).
+ * 4) compiled in default (from moira_site.h).
*/
int mr_connect(char *server)
*/
#ifndef lint
-static char *rcsid_sms_data_c = "$Header$";
+static char *rcsid_mr_data_c = "$Header$";
#endif
#include <mit-copyright.h>
*/
#ifndef lint
-static char *rcsid_sms_init_c = "$Header$";
+static char *rcsid_mr_init_c = "$Header$";
#endif
#include <mit-copyright.h>
*
* This routine is part of the client library. It handles
* the protocol operations: invoking an update and getting the
- * MR message of the day.
+ * Moira message of the day.
*/
#ifndef lint
-static char *rcsid_sms_do_update_c = "$Header$";
+static char *rcsid_mr_do_update_c = "$Header$";
#endif
#include <mit-copyright.h>
}
-/* Get the MR motd. This returns an MR status, and motd will either
+/* Get the Moira motd. This returns a Moira status, and motd will either
* point to NULL or the motd in a static buffer.
*/
*/
#ifndef lint
-static char *rcsid_sms_param_c = "$Header$";
+static char *rcsid_mr_param_c = "$Header$";
#endif
#include <mit-copyright.h>
*/
#ifndef lint
-static char *rcsid_sms_query_c = "$Header$";
+static char *rcsid_mr_query_c = "$Header$";
#endif
#include <mit-copyright.h>
}
/*
- * This routine makes an MR query.
+ * This routine makes a Moira query.
*
* argv[0] is the query name.
* argv[1..argc-1] are the query arguments.
if (status == SUCCESS)
{
- /* Get ready to make an Moira query */
+ /* Get ready to make a Moira query */
q_name = "get_user_account_by_name";
q_argc = GUBN_ARGS; /* #defined in this routine */
q_argv[0] = message->first;
*
* Copyright (C) 1987 by the Massachusetts Institute of Technology
*
- * Server for user registration with MOIRA and Kerberos.
+ * Server for user registration with Moira and Kerberos.
*
* This file contains all the information needed by all source
* files for the user registration server.
extern char *whoami; /* Name of program - used by libraries */
extern int errno; /* Unix error number */
-/* This structure holds information from the MOIRA database that will be
+/* This structure holds information from the Moira database that will be
worth holding on to. An instance of it appears in the formatted
packet structure. */
struct db_data
int encrypted_len; /* Length of encrypted information in packet */
char *leftover; /* Leftover information sent in the packet */
int leftover_len; /* Length of leftover information */
- struct db_data db; /* Information from the MOIRA database */
+ struct db_data db; /* Information from the Moira database */
};
void failure_alert(); /* Log an unexplainable failure */
int i;
/* Get service information from /etc/services */
- if (!(sp = getservbyname("sms_ureg", "udp")))
+ if (!(sp = getservbyname("moira_ureg", "udp")))
{
- com_err(whoami, errno, " unknown service sms_ureg/udp");
+ com_err(whoami, errno, " unknown service moira_ureg/udp");
exit(1);
}
sigemptyset(&action.sa_mask);
sigaction(SIGCHLD, &action, NULL);
- sprintf(buf, "%s/%s.log", SMS_DIR, PROG);
+ sprintf(buf, "%s/%s.log", MOIRA_DIR, PROG);
logf = open(buf, O_CREAT|O_WRONLY|O_APPEND, 0640);
if (logf < 0)
{
* For copying and distribution information, please see the file
* <mit-copyright.h>.
*
- * MOIRA server process.
+ * Moira server process.
*
* Most of this is stolen from ../gdb/tsr.c
*
int new_connection(void);
/*
- * Main MOIRA server loop.
+ * Main Moira server loop.
*
* Initialize the world, then start accepting connections and
* making progress on current connections.
*/
#ifndef lint
-static char *rcsid_sms_sauth_c = "$Header$";
+static char *rcsid_mr_sauth_c = "$Header$";
#endif lint
#include <mit-copyright.h>
*/
#ifndef lint
-static char *rcsid_sms_scall_c = "$Header$";
+static char *rcsid_mr_scall_c = "$Header$";
#endif lint
#include <mit-copyright.h>
struct sockaddr_in haddr; /* IP address of client */
char clname[MAX_K_NAME_SZ]; /* Name client authenticated to */
struct krbname kname; /* Parsed version of the above */
- int users_id; /* MR internal ID of authenticated user */
- int client_id; /* MR internal ID of client for modby field */
+ int users_id; /* Moira-internal ID of authenticated user */
+ int client_id; /* Moira-internal ID of client for modby field */
returned_tuples *first, *last;
time_t last_time_used; /* Last time connection used */
char entity[9]; /* entity on other end of the connection */
*/
#ifndef lint
-static char *rcsid_sms_shutdown_c = "$Header$";
+static char *rcsid_mr_shutdown_c = "$Header$";
#endif lint
#include <mit-copyright.h>
* For copying and distribution information, please see the file
* <mit-copyright.h>.
*
- * Global variables inside the SMS server.
+ * Global variables inside the Moira server.
*/
#ifndef lint
sigemptyset(&action.sa_mask);
sigaction(SIGCHLD, &action, NULL);
- sprintf(buf, "%s/moira.log", SMS_DIR);
+ sprintf(buf, "%s/moira.log", MOIRA_DIR);
logf = open(buf, O_CREAT|O_WRONLY|O_APPEND, 0640);
if (logf < 0)
{
* <mit-copyright.h>.
* DESCRIPTION:
* This code handles the actual distribution of data files
- * to servers in the MOIRA server-update program.
+ * to servers in the Moira server-update program.
* AUTHOR:
* Ken Raeburn (spook@athena.MIT.EDU),
* MIT Project Athena/MIT Information Systems.
/* wait for connection */
gdb_init();
/* If the config file contains a line "port portname", the daemon
- * will listen on the named port rather than SERVICE_NAME "sms_update"
+ * will listen on the named port rather than SERVICE_NAME "moira_update"
*/
if (!(p = config_lookup("port")))
p = SERVICE_NAME;