Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/DIRAC/FrameworkSystem/DB/ProxyDB.py
Original file line number Diff line number Diff line change
Expand Up @@ -833,7 +833,7 @@ def logAction(self, action, issuerDN, targetDN):
except KeyError:
return S_ERROR("Can't escape from death")
cmd = "INSERT INTO `ProxyDB_Log` ( Action, IssuerDN, IssuerGroup, TargetDN, TargetGroup, Timestamp ) VALUES "
cmd += f"( {sAction}, {sIssuerDN}, 'IssuerGroup' {sTargetDN}, 'TargetGroup', UTC_TIMESTAMP() )"
cmd += f"( {sAction}, {sIssuerDN}, 'IssuerGroup', {sTargetDN}, 'TargetGroup', UTC_TIMESTAMP() )"
retVal = self._update(cmd)
if not retVal["OK"]:
self.log.error("Can't add a proxy action log: ", retVal["Message"])
Expand Down
4 changes: 2 additions & 2 deletions src/DIRAC/FrameworkSystem/Service/ProxyManagerHandler.py
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ def export_getProxy(self, userDN, userGroup, requestPem, requiredLifetime):
return result
forceLimited = result["Value"]

self.__proxyDB.logAction("download proxy", credDict["DN"], credDict["group"], userDN, userGroup)
self.__proxyDB.logAction("download proxy", credDict["DN"], userDN)
return self.__getProxy(userDN, userGroup, requestPem, requiredLifetime, forceLimited)

def __getProxy(self, userDN, userGroup, requestPem, requiredLifetime, forceLimited):
Expand Down Expand Up @@ -226,7 +226,7 @@ def export_getVOMSProxy(self, userDN, userGroup, requestPem, requiredLifetime, v
return result
forceLimited = result["Value"]

self.__proxyDB.logAction("download voms proxy", credDict["DN"], credDict["group"], userDN, userGroup)
self.__proxyDB.logAction("download voms proxy", credDict["DN"], userDN)
return self.__getVOMSProxy(userDN, userGroup, requestPem, requiredLifetime, vomsAttribute, forceLimited)

def __getVOMSProxy(self, userDN, userGroup, requestPem, requiredLifetime, vomsAttribute, forceLimited):
Expand Down
Loading