r11969: got rid of the very annoying 'failed to open /secrets.tdb'
authorAndrew Tridgell <tridge@samba.org>
Wed, 30 Nov 2005 03:35:17 +0000 (03:35 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 18:46:52 +0000 (13:46 -0500)
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

source/auth/auth_util.c

index 95d1ddb2fc09384326cb5626987787e7b239028f..809db642b3c27aaa357c955e2e75c94ada15d9f4 100644 (file)
@@ -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;