From 516d0a97c9ecbbaa63b69c5c2c6a59a08f57a171 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Wed, 30 Nov 2005 03:35:17 +0000 Subject: r11969: got rid of the very annoying 'failed to open /secrets.tdb' messages. As discussed with Andrew, this will soon be replaced with a system that marks the credentials to use the machine accout from the database rather than pre-loading the machine account details here. The reason we got the annoying messages is this was being called before smb.conf is loaded, so the code doesn't yet know the location of the private directory (This used to be commit 6aeb4bf3fe224a6f81962237bdda329ba828b493) --- source4/auth/auth_util.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'source4/auth') diff --git a/source4/auth/auth_util.c b/source4/auth/auth_util.c index 95d1ddb2fc..809db642b3 100644 --- a/source4/auth/auth_util.c +++ b/source4/auth/auth_util.c @@ -604,12 +604,16 @@ NTSTATUS auth_system_session_info(TALLOC_CTX *parent_ctx, } cli_credentials_set_conf(session_info->credentials); +#if 0 + /* disabled for the moment. abartlet has plans to change this + to set a flag saying 'get machine account credentials from + here' rather than this system. */ if (!NT_STATUS_IS_OK(cli_credentials_set_machine_account(session_info->credentials))) { /* perhaps no credentials, we might not be joined to a domain */ talloc_free(session_info->credentials); session_info->credentials = NULL; } - +#endif *_session_info = session_info; return NT_STATUS_OK; -- cgit