summaryrefslogtreecommitdiff
path: root/source4/libcli/auth
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2005-01-05 10:21:08 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:08:18 -0500
commite1944a3d6d2d4e8772c17891486bbcb992c7096a (patch)
tree9ba10c9ba1070b497799b59df2f7d9e915be4968 /source4/libcli/auth
parent5e9a136908fdc2955f8554fee83fff4c93ec998a (diff)
downloadsamba-e1944a3d6d2d4e8772c17891486bbcb992c7096a.tar.gz
samba-e1944a3d6d2d4e8772c17891486bbcb992c7096a.tar.bz2
samba-e1944a3d6d2d4e8772c17891486bbcb992c7096a.zip
r4531: Include the OID locally, as it seems to be hard to get the includes
right. Andrew Bartlett (This used to be commit a742ea1e1221058ae6a99e317fbf18c80bc49aed)
Diffstat (limited to 'source4/libcli/auth')
-rw-r--r--source4/libcli/auth/gensec_gssapi.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/source4/libcli/auth/gensec_gssapi.c b/source4/libcli/auth/gensec_gssapi.c
index 690d36e798..0b5bd01194 100644
--- a/source4/libcli/auth/gensec_gssapi.c
+++ b/source4/libcli/auth/gensec_gssapi.c
@@ -130,6 +130,10 @@ static NTSTATUS gensec_gssapi_client_start(struct gensec_security *gensec_securi
gss_buffer_desc name_token;
OM_uint32 maj_stat, min_stat;
+ gss_OID_desc hostbased = {10,
+ (void *)discard_const_p(char, "\x2a\x86\x48\x86\xf7\x12"
+ "\x01\x02\x01\x04")};
+
nt_status = gensec_gssapi_start(gensec_security);
if (!NT_STATUS_IS_OK(nt_status)) {
return nt_status;
@@ -144,7 +148,7 @@ static NTSTATUS gensec_gssapi_client_start(struct gensec_security *gensec_securi
maj_stat = gss_import_name (&min_stat,
&name_token,
- GSS_C_NT_HOSTBASED_SERVICE,
+ &hostbased,
&gensec_gssapi_state->server_name);