]> andersk Git - moira.git/blobdiff - server/mr_scall.c
Command line printer manipulation client, and build goo.
[moira.git] / server / mr_scall.c
index 222ac93705f4c3fdd23e71627051777aab88e81e..4604334149e1a03e0caaf7506cbe55e1b7f90bbc 100644 (file)
@@ -53,6 +53,7 @@ char *procnames[] = {
   "motd",
   "proxy",
   "version",
+  "auth_krb5",
 };
 
 int newqueries;
@@ -77,8 +78,7 @@ void client_read(client *cl)
     {
       com_err(whoami, 0, "procno out of range");
       client_reply(cl, MR_UNKNOWN_PROC);
-      mr_destroy_reply(cl->req);
-      return;
+      goto out;
     }
   log_args(procnames[pn], 2, cl->req.mr_argc, cl->req.mr_argv);
 
@@ -86,8 +86,7 @@ void client_read(client *cl)
     {
       client_reply(cl, MR_DOWN);
       com_err(whoami, MR_DOWN, "(query refused)");
-      mr_destroy_reply(cl->req);
-      return;
+      goto out;
     }
 
   /* make sure this gets cleared before every operation */
@@ -130,7 +129,14 @@ void client_read(client *cl)
     case MR_SETVERSION:
       do_version(cl);
       break;
+
+    case MR_KRB5_AUTH:
+      do_krb5_auth(cl);
+      break;
+
     }
+
+out:
   mr_destroy_reply(cl->req);
   memset(&cl->req, 0, sizeof(mr_params));
 }
This page took 0.032198 seconds and 4 git commands to generate.