Skip to content

Commit

Permalink
Handle external connections (Enterprise version) timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
elg committed Feb 7, 2020
1 parent 6d7c2a8 commit 6ce8345
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions passhportd/app/views_mod/target/target.py
Original file line number Diff line number Diff line change
Expand Up @@ -592,7 +592,7 @@ def extgetaccess(ip, targetname, username):

#Date to stop access:
startdate = datetime.now()
stopdate = startdate + timedelta(hours=int(config.DB_SESSIONS_TO))
stopdate = startdate + timedelta(hours=int(t.show_sessionduration())/60)
formatedstop = format(stopdate, '%Y%m%dT%H%M')

#Call the external script
Expand Down Expand Up @@ -633,7 +633,6 @@ def extgetaccess(ip, targetname, username):
return utils.response('ERROR: No user "' + username + \
'" in the database ', 417)

print(output)
ta = exttargetaccess.Exttargetaccess(
startdate = startdate,
stopdate = stopdate,
Expand Down

0 comments on commit 6ce8345

Please sign in to comment.