diff options
author | Stefan Metzmacher <metze@samba.org> | 2007-04-16 12:00:08 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 12:19:22 -0500 |
commit | 3678d69b82a109218211d6abc89cef9c460d3b45 (patch) | |
tree | 771a6d7b56b970ce0afeb39e6c2a55b7d9ca1dad /source3 | |
parent | b97c8658d530381ffe6bcab87173b9362c756d4b (diff) | |
download | samba-3678d69b82a109218211d6abc89cef9c460d3b45.tar.gz samba-3678d69b82a109218211d6abc89cef9c460d3b45.tar.bz2 samba-3678d69b82a109218211d6abc89cef9c460d3b45.zip |
r22262: fix the build on systems without GSS_C_NT_HOSTBASED_SERVICE
metze
(This used to be commit 402704b62972c223f3e70bcd6221dc7c3a64f4b9)
Diffstat (limited to 'source3')
-rw-r--r-- | source3/smbd/seal.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/source3/smbd/seal.c b/source3/smbd/seal.c index 66ae8419d4..259aff014a 100644 --- a/source3/smbd/seal.c +++ b/source3/smbd/seal.c @@ -103,6 +103,9 @@ static NTSTATUS get_srv_gss_creds(const char *service, char *host_princ_s = NULL; NTSTATUS status = NT_STATUS_OK; + gss_OID_desc nt_hostbased_service = + {10, CONST_DISCARD(char *,"\x2a\x86\x48\x86\xf7\x12\x01\x02\x01\x04")}; + asprintf(&host_princ_s, "%s@%s", service, name); if (host_princ_s == NULL) { return NT_STATUS_NO_MEMORY; @@ -113,7 +116,7 @@ static NTSTATUS get_srv_gss_creds(const char *service, ret = gss_import_name(&min, &input_name, - GSS_C_NT_HOSTBASED_SERVICE, + &nt_hostbased_service, &srv_name); if (ret != GSS_S_COMPLETE) { |