summaryrefslogtreecommitdiff
path: root/source3/librpc/crypto
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2012-01-02 15:26:15 +1100
committerStefan Metzmacher <metze@samba.org>2012-01-18 16:23:22 +0100
commit53cc9c6a3016b6ba95f280eb68600bdc21a6eed7 (patch)
treeb04864eeb3faefe7247aa23472e48cdfe0c92db6 /source3/librpc/crypto
parente012ad9d8b7cea3a86841fe92b80627a6d07d459 (diff)
downloadsamba-53cc9c6a3016b6ba95f280eb68600bdc21a6eed7.tar.gz
samba-53cc9c6a3016b6ba95f280eb68600bdc21a6eed7.tar.bz2
samba-53cc9c6a3016b6ba95f280eb68600bdc21a6eed7.zip
s3-librpc Allow spnego_generic_init_client to handle kerberos too
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Diffstat (limited to 'source3/librpc/crypto')
-rw-r--r--source3/librpc/crypto/cli_spnego.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source3/librpc/crypto/cli_spnego.c b/source3/librpc/crypto/cli_spnego.c
index 98251c776e..97e6a8152b 100644
--- a/source3/librpc/crypto/cli_spnego.c
+++ b/source3/librpc/crypto/cli_spnego.c
@@ -105,6 +105,8 @@ NTSTATUS spnego_generic_init_client(TALLOC_CTX *mem_ctx,
}
if (strcmp(oid, GENSEC_OID_NTLMSSP) == 0) {
sp_ctx->mech = SPNEGO_NTLMSSP;
+ } else if (strcmp(oid, GENSEC_OID_KERBEROS5) == 0) {
+ sp_ctx->mech = SPNEGO_KRB5;
} else {
return NT_STATUS_INVALID_PARAMETER;
}