password and topic name
This commit is contained in:
parent
9b7bbe0168
commit
12ffc58b7e
|
@ -853,7 +853,11 @@ end:
|
||||||
char detail[100] = {0};
|
char detail[100] = {0};
|
||||||
sprintf(detail, "igNotExists:%d", dropReq.igNotExists);
|
sprintf(detail, "igNotExists:%d", dropReq.igNotExists);
|
||||||
|
|
||||||
auditRecord(pReq, pMnode->clusterId, "dropTopic", dropReq.name, "", detail);
|
SName name = {0};
|
||||||
|
tNameFromString(&name, dropReq.name, T_NAME_ACCT | T_NAME_DB);
|
||||||
|
//reuse this function for topic
|
||||||
|
|
||||||
|
auditRecord(pReq, pMnode->clusterId, "dropTopic", name.dbname, "", detail);
|
||||||
|
|
||||||
return TSDB_CODE_ACTION_IN_PROGRESS;
|
return TSDB_CODE_ACTION_IN_PROGRESS;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1039,11 +1039,14 @@ static int32_t mndProcessAlterUserReq(SRpcMsg *pReq) {
|
||||||
if (code == 0) code = TSDB_CODE_ACTION_IN_PROGRESS;
|
if (code == 0) code = TSDB_CODE_ACTION_IN_PROGRESS;
|
||||||
|
|
||||||
char detail[1000] = {0};
|
char detail[1000] = {0};
|
||||||
sprintf(detail, "alterType:%s, enable:%d, superUser:%d, sysInfo:%d, tabName:%s",
|
sprintf(detail, "alterType:%s, enable:%d, superUser:%d, sysInfo:%d, tabName:%s, password:",
|
||||||
mndUserAuditTypeStr(alterReq.alterType), alterReq.enable, alterReq.superUser, alterReq.sysInfo, alterReq.tabName);
|
mndUserAuditTypeStr(alterReq.alterType), alterReq.enable, alterReq.superUser, alterReq.sysInfo, alterReq.tabName);
|
||||||
|
|
||||||
if(alterReq.alterType == TSDB_ALTER_USER_PASSWD){
|
if(alterReq.alterType == TSDB_ALTER_USER_PASSWD){
|
||||||
auditRecord(pReq, pMnode->clusterId, "changePassword", alterReq.user, "", detail);
|
sprintf(detail, "alterType:%s, enable:%d, superUser:%d, sysInfo:%d, tabName:%s, password:xxx",
|
||||||
|
mndUserAuditTypeStr(alterReq.alterType), alterReq.enable, alterReq.superUser, alterReq.sysInfo,
|
||||||
|
alterReq.tabName);
|
||||||
|
auditRecord(pReq, pMnode->clusterId, "alterUser", alterReq.user, "", detail);
|
||||||
}
|
}
|
||||||
else if(alterReq.alterType == TSDB_ALTER_USER_SUPERUSER ||
|
else if(alterReq.alterType == TSDB_ALTER_USER_SUPERUSER ||
|
||||||
alterReq.alterType == TSDB_ALTER_USER_ENABLE ||
|
alterReq.alterType == TSDB_ALTER_USER_ENABLE ||
|
||||||
|
|
Loading…
Reference in New Issue