s3-librpc Allow spnego_generic_init_client to handle kerberos too
authorAndrew Bartlett <abartlet@samba.org>
Mon, 2 Jan 2012 04:26:15 +0000 (15:26 +1100)
committerStefan Metzmacher <metze@samba.org>
Wed, 18 Jan 2012 15:23:22 +0000 (16:23 +0100)
Signed-off-by: Stefan Metzmacher <metze@samba.org>
source3/librpc/crypto/cli_spnego.c

index 98251c776ecfa6af2b43c4e124d8bb3c94e0faea..97e6a8152bef6654fe719cb65558aaf3655502be 100644 (file)
@@ -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;
        }