summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2008-08-08 15:27:40 +0200
committerStefan Metzmacher <metze@samba.org>2008-08-08 15:29:16 +0200
commitdd35840d9be4acff6fe2ff4f268039adf828d871 (patch)
tree13bb886478d650f97f04938aec8c6d36763bb77f /source4
parent610b1ada1535b2ae1b38adde4de112ee6dc23a2c (diff)
downloadsamba-dd35840d9be4acff6fe2ff4f268039adf828d871.tar.gz
samba-dd35840d9be4acff6fe2ff4f268039adf828d871.tar.bz2
samba-dd35840d9be4acff6fe2ff4f268039adf828d871.zip
gensec_gssapi: use gsskrb5_get_subkey() to get the session key
This is needed to get the correct key, when aes keys are used. metze (This used to be commit 7587a7d8b65f27a5865d6873f63a450488da02c9)
Diffstat (limited to 'source4')
-rw-r--r--source4/auth/gensec/gensec_gssapi.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source4/auth/gensec/gensec_gssapi.c b/source4/auth/gensec/gensec_gssapi.c
index 1541c88e07..0b1b9d851c 100644
--- a/source4/auth/gensec/gensec_gssapi.c
+++ b/source4/auth/gensec/gensec_gssapi.c
@@ -1165,9 +1165,9 @@ static NTSTATUS gensec_gssapi_session_key(struct gensec_security *gensec_securit
return NT_STATUS_OK;
}
- maj_stat = gsskrb5_get_initiator_subkey(&min_stat,
- gensec_gssapi_state->gssapi_context,
- &subkey);
+ maj_stat = gsskrb5_get_subkey(&min_stat,
+ gensec_gssapi_state->gssapi_context,
+ &subkey);
if (maj_stat != 0) {
DEBUG(1, ("NO session key for this mech\n"));
return NT_STATUS_NO_USER_SESSION_KEY;