summaryrefslogtreecommitdiff
path: root/source4/auth/gensec/gensec_gssapi.c
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2008-07-28 17:59:17 +0200
committerStefan Metzmacher <metze@samba.org>2008-07-28 17:59:17 +0200
commite45c3e127d389a2cb63879ca12bbbfed048f4eb1 (patch)
treeda7fbedb104e1f3d0a7a9cd35fb42110e9673539 /source4/auth/gensec/gensec_gssapi.c
parent14900695da4e32e64ddb6262b1764983254fcc1d (diff)
downloadsamba-e45c3e127d389a2cb63879ca12bbbfed048f4eb1.tar.gz
samba-e45c3e127d389a2cb63879ca12bbbfed048f4eb1.tar.bz2
samba-e45c3e127d389a2cb63879ca12bbbfed048f4eb1.zip
Revert "gensec_gssapi: use gsskrb5_get_subkey() to make smb2 signing with aes keys work"
This reverts commit 73964f069056f46f2f27fc690e42e5c91ae1fe19. This breaks more than it gains:-( It seems to break the ncacn_np session key metze (This used to be commit 9678085f75b6cb0ed068e22f3d9f94247b200ce2)
Diffstat (limited to 'source4/auth/gensec/gensec_gssapi.c')
-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 c20cf4f5bd..205d8a0f9b 100644
--- a/source4/auth/gensec/gensec_gssapi.c
+++ b/source4/auth/gensec/gensec_gssapi.c
@@ -1152,9 +1152,9 @@ static NTSTATUS gensec_gssapi_session_key(struct gensec_security *gensec_securit
return NT_STATUS_OK;
}
- maj_stat = gsskrb5_get_subkey(&min_stat,
- gensec_gssapi_state->gssapi_context,
- &subkey);
+ maj_stat = gsskrb5_get_initiator_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;