From 5e6543ad76490b5d21b99841e1f984bad7f17e33 Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Sun, 9 Oct 2011 23:28:54 +1100 Subject: [PATCH] build: compile gensec_start.c and credentials.c in the autoconf build Signed-off-by: Stefan Metzmacher --- auth/credentials/credentials_samba3.c | 50 +++++++++++++++++++++++++++ source3/Makefile.in | 3 ++ 2 files changed, 53 insertions(+) create mode 100644 auth/credentials/credentials_samba3.c diff --git a/auth/credentials/credentials_samba3.c b/auth/credentials/credentials_samba3.c new file mode 100644 index 00000000000..23108250ef5 --- /dev/null +++ b/auth/credentials/credentials_samba3.c @@ -0,0 +1,50 @@ +/* + Unix SMB/CIFS implementation. + + Handle user credentials (shim to allow samba3 to build) + + Copyright (C) Andrew Bartlett 2011 + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . +*/ + +#include "includes.h" +#include "auth/credentials/credentials.h" + +/* These dummy functions are required only to allow the rest of the + * code to compile when we are in the s3 autoconf build system */ + +_PUBLIC_ void cli_credentials_invalidate_ccache(struct cli_credentials *cred, + enum credentials_obtained obtained) +{ + DEBUG(0, ("cli_credentials_invalidate_ccache is unimplemented in the autoconf build\n")); + return; +} + +_PUBLIC_ int cli_credentials_set_ccache(struct cli_credentials *cred, + struct loadparm_context *lp_ctx, + const char *name, + enum credentials_obtained obtained, + const char **error_string) +{ + DEBUG(0, ("cli_credentials_set_ccache is unimplemented in the autoconf build\n")); + return EINVAL; +} + +_PUBLIC_ NTSTATUS cli_credentials_set_machine_account(struct cli_credentials *cred, + struct loadparm_context *lp_ctx) +{ + DEBUG(0, ("cli_credentials_set_machine_account is unimplemented in the autoconf build\n")); + return NT_STATUS_CANT_ACCESS_DOMAIN_INFO; +} diff --git a/source3/Makefile.in b/source3/Makefile.in index f2bab711dc8..9e74d08ad9b 100644 --- a/source3/Makefile.in +++ b/source3/Makefile.in @@ -559,6 +559,9 @@ LIBSMB_OBJ0 = \ libsmb/ntlmssp.o \ libsmb/ntlmssp_wrap.o \ ../auth/gensec/gensec.o \ + ../auth/gensec/gensec_start.o \ + ../auth/credentials/credentials.o \ + ../auth/credentials/credentials_samba3.o \ ../libcli/auth/ntlmssp.o \ ../libcli/auth/ntlmssp_sign.o \ $(LIBNDR_NTLMSSP_OBJ) \ -- 2.34.1