diff options
author | Simo Sorce <simo@redhat.com> | 2015-06-13 18:44:18 -0400 |
---|---|---|
committer | Simo Sorce <simo@redhat.com> | 2015-06-13 19:01:35 -0400 |
commit | 81d89f77d878ac5131ef760aef23b220e45dd435 (patch) | |
tree | fa6777906ca72273b5ae7af6fab19ec13ae6dc29 /src | |
parent | c01b7aa059ea8ff9b82407615571962a58839bd8 (diff) | |
download | mod_auth_gssapi-81d89f77d878ac5131ef760aef23b220e45dd435.tar.gz mod_auth_gssapi-81d89f77d878ac5131ef760aef23b220e45dd435.tar.xz mod_auth_gssapi-81d89f77d878ac5131ef760aef23b220e45dd435.zip |
Store data in session as the last thing
mag_attempt_session() was being called too early.
Signed-off-by: Simo Sorce <simo@redhat.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/mod_auth_gssapi.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mod_auth_gssapi.c b/src/mod_auth_gssapi.c index 8687568..95838d3 100644 --- a/src/mod_auth_gssapi.c +++ b/src/mod_auth_gssapi.c @@ -709,13 +709,13 @@ static int mag_auth(request_rec *req) vtime = MIN_SESS_EXP_TIME; } mc->expiration = expiration; - if (cfg->use_sessions) { - mag_attempt_session(req, cfg, mc); - } mc->auth_type = auth_type; if (auth_type == AUTH_TYPE_BASIC) { mag_basic_cache(cfg, mc, ba_user, ba_pwd); } + if (cfg->use_sessions) { + mag_attempt_session(req, cfg, mc); + } } if (cfg->send_persist) |