#define VMX_RPC_UNKNOWN 0 // RPC disabled or not supported
#define VMX_RPC_ERROR -1 // failed to send RPC
+#define VMXLOG_SERVICE_NAME "[vgauthservice]"
/*
* Some typedefs for portability.
*/
*/
if (useNewRpc) {
/* XXX TODO use the level */
- cmd = g_strdup_printf("%s %s", LOG_RPC_CMD_NEW, msg);
+ cmd = g_strdup_printf("%s " VMXLOG_SERVICE_NAME " %s", LOG_RPC_CMD_NEW, msg);
} else {
- cmd = g_strdup_printf("%s %s", LOG_RPC_CMD, msg);
+ cmd = g_strdup_printf("%s " VMXLOG_SERVICE_NAME " %s", LOG_RPC_CMD, msg);
}
ret = SendString(cmd);
/*********************************************************
- * Copyright (C) 2011-2017 VMware, Inc. All rights reserved.
+ * Copyright (C) 2011-2018 VMware, Inc. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as published
#include "serviceInt.h"
#include "certverify.h"
#include "VGAuthProto.h"
+#include "vmxlog.h"
// puts the identity store in an easy to find place
#undef WIN_TEST_MODE
SU_(alias.addid,
"Alias added to Alias store owned by '%s' by user '%s'"),
userName, reqUserName);
+ VMXLog_Log(VMXLOG_LEVEL_WARNING,
+ "%s: alias added for user '%s' with Subject '%s'",
+ __FUNCTION__,
+ (userName != NULL) ? userName : "<UNKNOWN>",
+ (ai->type == SUBJECT_TYPE_ANY) ? "<ANY>" : ai->name);
}
done:
SU_(alias.removeid,
"Alias removed from Alias store owned by '%s' by user '%s'"),
userName, reqUserName);
+ if (removeAll) {
+ VMXLog_Log(VMXLOG_LEVEL_WARNING,
+ "%s: all aliases removed for user '%s'",
+ __FUNCTION__,
+ (userName != NULL) ? userName : "<UNKNOWN>");
+ } else {
+ VMXLog_Log(VMXLOG_LEVEL_WARNING,
+ "%s: alias removed for user '%s' with Subject '%s'",
+ __FUNCTION__,
+ (userName != NULL) ? userName : "<UNKNOWN>",
+ (subj->type == SUBJECT_TYPE_ANY) ? "<ANY>" : subj->name);
+ }
}
done:
g_strcmp0(queryUserName, maList[j].userName) != 0) {
Warning("%s: found more than one user in map file chain\n",
__FUNCTION__);
+ VMXLog_Log(VMXLOG_LEVEL_WARNING,
+ "%s: found more than one user in map file chain\n",
+ __FUNCTION__);
err = VGAUTH_E_MULTIPLE_MAPPINGS;
goto done;
}