]> andersk Git - moira.git/blobdiff - server/mr_server.h
- Fixed bugs in get_groups_of_all_users
[moira.git] / server / mr_server.h
index 148cb09c5c34c8c551e8749ff5cd77b4f78264f1..9276ed8643a32e977911ad788cf2bb6f31ef95d7 100644 (file)
@@ -6,9 +6,18 @@
  *     Copyright (C) 1987 by the Massachusetts Institute of Technology
  *
  *     $Log$
- *     Revision 1.4  1987-06-21 16:42:07  wesommer
- *     Performance work, rearrangement of include files.
+ *     Revision 1.7  1987-07-29 16:03:30  wesommer
+ *     Added last_time_used field to client structure.
  *
+ * Revision 1.6  87/07/14  00:36:40  wesommer
+ * Added debugging options.
+ * 
+ * Revision 1.5  87/06/30  20:05:14  wesommer
+ * Added parsed kerberos principal name.
+ * 
+ * Revision 1.4  87/06/21  16:42:07  wesommer
+ * Performance work, rearrangement of include files.
+ * 
  * Revision 1.3  87/06/03  16:07:59  wesommer
  * Fixes for lint.
  * 
 #include <sys/socket.h>
 #include <netinet/in.h>
 #include "sms_proto.h"
+#include <krb.h>
 
 typedef struct returned_tuples {
        struct returned_tuples *next;
        OPERATION op;
+       sms_params *retval;
 } returned_tuples;
 
+/*
+ * This should be in the kerberos header file.
+ */
+
+struct krbname {
+       char name[ANAME_SZ];
+       char inst[INST_SZ];
+       char realm[REALM_SZ];
+};
+
+/*
+ * This structure holds all per-client information; one of these is
+ * allocated for each active client.
+ */
+   
 typedef struct _client {
-       OPERATION pending_op;
-       CONNECTION con;
-       int state;
-       int action;
+       OPERATION pending_op;   /* Primary pending operation */
+       CONNECTION con;         /* Connection to the client */
+       int state;              /* XXX this is really superfluous and should */
+                               /* be removed */
+       int action;             /* what action is pending? */
        sms_params *args, reply;
        int id;                 /* Unique id of client */
-       struct sockaddr_in haddr;
-       char *clname;
+       struct sockaddr_in haddr; /* IP address of client */
+       char *clname;           /* Name client authenticated to */
+       struct krbname kname;   /* Parsed version of the above */
        returned_tuples *first, *last;
+       time_t last_time_used;  /* Last time connection used */
 } client;
 
 /*
@@ -55,3 +84,17 @@ typedef struct _client {
 #define CL_RECEIVE 1
 #define CL_SEND 2
 
+extern char *krb_realm;
+
+/*
+ * Debugging options.
+ */
+
+extern int log_flags;
+
+#define LOG_CONNECT            0x0001
+#define LOG_REQUESTS           0x0002
+#define LOG_ARGS               0x0004
+#define LOG_RESP               0x0008
+#define LOG_RES                        0x0010
+
This page took 0.086618 seconds and 4 git commands to generate.