summaryrefslogtreecommitdiffstats
path: root/source4/auth
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2012-04-20 13:51:22 +0200
committerStefan Metzmacher <metze@samba.org>2012-05-17 20:04:34 +0200
commit90c309b053c0328419a79361e0c2e32486cef428 (patch)
tree15175b66cabcd2a6ae5fb5f7d9b24e595d0fec92 /source4/auth
parentbffa1c5547dbe8075004f61bd25e63b4d2e3c521 (diff)
downloadsamba-90c309b053c0328419a79361e0c2e32486cef428.tar.gz
samba-90c309b053c0328419a79361e0c2e32486cef428.tar.xz
samba-90c309b053c0328419a79361e0c2e32486cef428.zip
s4:auth/gensec_gssapi: add "gensec_gssapi:requested_life_time" option
metze
Diffstat (limited to 'source4/auth')
-rw-r--r--source4/auth/gensec/gensec_gssapi.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/source4/auth/gensec/gensec_gssapi.c b/source4/auth/gensec/gensec_gssapi.c
index 3316e14b10..dde481a41c 100644
--- a/source4/auth/gensec/gensec_gssapi.c
+++ b/source4/auth/gensec/gensec_gssapi.c
@@ -416,9 +416,14 @@ static NTSTATUS gensec_gssapi_update(struct gensec_security *gensec_security,
OM_uint32 min_stat2;
gss_buffer_desc input_token, output_token;
gss_OID gss_oid_p = NULL;
+ OM_uint32 time_req = 0;
OM_uint32 time_rec = 0;
struct timeval tv;
+ time_req = gensec_setting_int(gensec_security->settings,
+ "gensec_gssapi", "requested_life_time",
+ time_req);
+
input_token.length = in.length;
input_token.value = in.data;
@@ -453,7 +458,7 @@ static NTSTATUS gensec_gssapi_update(struct gensec_security *gensec_security,
gensec_gssapi_state->server_name,
gensec_gssapi_state->gss_oid,
gensec_gssapi_state->gss_want_flags,
- 0,
+ time_req,
gensec_gssapi_state->input_chan_bindings,
&input_token,
&gss_oid_p,