Skip to content

Commit

Permalink
get tmp filesystem via tempfile
Browse files Browse the repository at this point in the history
  • Loading branch information
dignajar committed Aug 11, 2021
1 parent 25c04d3 commit 69ec4bc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion files/aldap/aldap.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ def getUserGroups(self, username:str):
try:
adGroups.extend(element['memberOf'])
except:
None
pass
# Create a list from the elements and convert binary to str the items
adGroups = list(map(self.__decode__,adGroups))
return adGroups
Expand Down
3 changes: 2 additions & 1 deletion files/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
from flask_session import Session
from werkzeug.exceptions import HTTPException
from datetime import timedelta
from tempfile import gettempdir
from aldap.logs import Logs
from aldap.bruteforce import BruteForce
from aldap.parameters import Parameters
Expand All @@ -28,7 +29,7 @@

# Flask-Session module
SESSION_TYPE = 'filesystem'
SESSION_FILE_DIR = '/tmp/'
SESSION_FILE_DIR = gettempdir()
SESSION_USE_SIGNER = True
SESSION_COOKIE_NAME = 'another-ldap'
SESSION_COOKIE_DOMAIN = param.get('COOKIE_DOMAIN', None)
Expand Down

0 comments on commit 69ec4bc

Please sign in to comment.