r11989: Rather than grabbing the machine account details at this point, grab
authorAndrew Bartlett <abartlet@samba.org>
Thu, 1 Dec 2005 04:54:28 +0000 (04:54 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 18:46:55 +0000 (13:46 -0500)
them 'later'.  We will need to handle the errors when we call the
get_* methods.

Andrew Bartlett
(This used to be commit c6e572f87022b57cdfd8178eb5c23df67a92c453)

source4/auth/auth_util.c

index 809db642b3c27aaa357c955e2e75c94ada15d9f4..dbedde919085bbd3d50c3e00b14120ea9bc3f396 100644 (file)
@@ -604,16 +604,7 @@ 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
+       cli_credentials_set_machine_account_pending(session_info->credentials);
        *_session_info = session_info;
 
        return NT_STATUS_OK;