Fix session logout

There were 2 issues with session logouts, one is that the logout_cookie
was checked and acted on in the wrong place, the other is that the wrong
value was set in the IPASESSION header.

Fixes https://fedorahosted.org/freeipa/ticket/6685

Signed-off-by: Simo Sorce <simo@redhat.com>
Reviewed-By: Stanislav Laznicka <slaznick@redhat.com>
This commit is contained in:
Simo Sorce authored and Martin Babinsky committed 2017-02-22 10:15:50 +01:00
1 parent fe6f2b6f6e
commit 908d2eaba4
2 files changed
+5 -5

No files matched your search

+1 -1
View File
@@ -23,6 +23,6 @@ class session_logout(Command):
else:
delattr(context, 'ccache_name')
setattr(context, 'logout_cookie', '')
setattr(context, 'logout_cookie', 'MagBearerToken=')
return dict(result=None)