[X2Go-Commits] [x2gobroker] 03/03: dynamic cookie auth: add a note about handling old/stray cookie files

git-admin at x2go.org git-admin at x2go.org
Sun Mar 9 14:07:01 CET 2014


This is an automated email from the git hooks/post-receive script.

x2go pushed a commit to branch master
in repository x2gobroker.

commit a5c2d208cf8045553d105b77eebe4376962a3a84
Author: Mike Gabriel <mike.gabriel at das-netzwerkteam.de>
Date:   Sun Mar 9 14:06:35 2014 +0100

    dynamic cookie auth: add a note about handling old/stray cookie files
---
 x2gobroker/brokers/base_broker.py |    3 +++
 1 file changed, 3 insertions(+)

diff --git a/x2gobroker/brokers/base_broker.py b/x2gobroker/brokers/base_broker.py
index 3dc859f..66e92e5 100644
--- a/x2gobroker/brokers/base_broker.py
+++ b/x2gobroker/brokers/base_broker.py
@@ -833,6 +833,9 @@ class X2GoBroker(object):
                     fh.close()
                     access = True
                 else:
+
+                    # FIXME: here we need some magic to remove deprecated cookie files (by their timestamp)!!!
+
                     # client sent us an unknown cookie so failing auth
                     logger_broker.debug('base_broker.X2GoBroker.check_access(): User {username} from {ip} presented cookie {cookie} which is not recognized - rejecting user'.format(username=username, cookie=cookie, ip=ip))
                     return False, None

--
Alioth's /srv/git/_hooks_/post-receive-email on /srv/git/code.x2go.org/x2gobroker.git



More information about the x2go-commits mailing list