2.3.8 TASK_USER_CRED

The TASK_USER_CRED structure contains user credentials and is passed to the server during task registration, as specified in section 3.2.5.4.2.

 typedef struct _TASK_USER_CRED {
   [string] const wchar_t* userId;
   [string] const wchar_t* password;
   DWORD flags;
 } TASK_USER_CRED;

userId: Contains the user name identifying the account under which the task can execute. The user name is a string recognized by Windows authentication, as specified in [MS-AUTHSOD] section 1.1.1.2.<9>

password: Contains the password associated with the user specified in the preceding userId field above, represented as a string. For information about security considerations, see section 5.1.

flags: The flags field contains individual bit flags that are structured as shown in the following table. The client MUST set the undefined bits to 0. The undefined bits are ignored on receipt.


0


1


2


3


4


5


6


7


8


9

1
0


1


2


3


4


5


6


7


8


9

2
0


1


2


3


4


5


6


7


8


9

3
0


1

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

D

Value

Description

D

credFlagDefault

If set to 1, the server can use these credentials if no other credentials are provided. If set to 0, the server can use these credentials instead of the credentials specified in the task configuration.