[2025] in Moira Commits
/svn/moira r4167 - trunk/moira/server
daemon@ATHENA.MIT.EDU (Garry Zacheiss)
Fri Jun 13 15:36:46 2014
Date: Fri, 13 Jun 2014 15:36:39 -0400
From: Garry Zacheiss <zacheiss@MIT.EDU>
Message-Id: <201406131936.s5DJadSP013466@drugstore.mit.edu>
To: moira-commits@MIT.EDU
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Author: zacheiss
Date: 2014-06-13 15:36:39 -0400 (Fri, 13 Jun 2014)
New Revision: 4167
Modified:
trunk/moira/server/mr_sauth.c
Log:
If someone proxies, set modwith to the second argument of the proxy RPC.
Modified: trunk/moira/server/mr_sauth.c
===================================================================
--- trunk/moira/server/mr_sauth.c 2014-06-13 19:31:39 UTC (rev 4166)
+++ trunk/moira/server/mr_sauth.c 2014-06-13 19:36:39 UTC (rev 4167)
@@ -163,6 +163,8 @@
{
cl->proxy_id = cl->client_id;
set_client(cl, kname, name, inst, realm);
+ strncpy(cl->entity, cl->req.mr_argv[1], sizeof(cl->entity) - 1);
+ cl->entity[sizeof(cl->entity) - 1] = 0;
com_err(whoami, 0, "Proxy authentication as %s (uid %d cid %d) via %s",
kname, cl->users_id, cl->client_id, cl->req.mr_argv[1]);
client_reply(cl, MR_SUCCESS);