struct netlogon_creds_CredentialState *netlogon_creds_client_init(TALLOC_CTX *mem_ctx,
const char *client_account,
const char *client_computer_name,
+ uint16_t secure_channel_type,
const struct netr_Credential *client_challenge,
const struct netr_Credential *server_challenge,
const struct samr_Password *machine_password,
creds->sequence = time(NULL);
creds->negotiate_flags = negotiate_flags;
+ creds->secure_channel_type = secure_channel_type;
creds->computer_name = talloc_strdup(creds, client_computer_name);
if (!creds->computer_name) {
struct netlogon_creds_CredentialState *netlogon_creds_client_init(TALLOC_CTX *mem_ctx,
const char *client_account,
const char *client_computer_name,
+ uint16_t secure_channel_type,
const struct netr_Credential *client_challenge,
const struct netr_Credential *server_challenge,
const struct samr_Password *machine_password,
cli->dc = netlogon_creds_client_init(cli,
mach_acct,
clnt_name,
+ sec_chan_type,
&clnt_chal_send,
&srv_chal_recv,
&password,
s->creds = netlogon_creds_client_init(s,
s->a.in.account_name,
s->a.in.computer_name,
+ s->a.in.secure_channel_type,
&s->credentials1, &s->credentials2,
s->mach_pwd, &s->credentials3,
s->local_negotiate_flags);
creds = netlogon_creds_client_init(tctx, a.in.account_name,
a.in.computer_name,
+ a.in.secure_channel_type,
&credentials1, &credentials2,
pwhash, &credentials3,
negotiate_flags);
creds = netlogon_creds_client_init(tctx, a.in.account_name,
a.in.computer_name,
+ a.in.secure_channel_type,
&credentials1, &credentials2,
&mach_password, &credentials3,
negotiate_flags);
creds = netlogon_creds_client_init(tctx, a.in.account_name,
a.in.computer_name,
+ a.in.secure_channel_type,
&credentials1, &credentials2,
mach_password, &credentials3,
0);
creds = netlogon_creds_client_init(tctx, a.in.account_name,
a.in.computer_name,
+ a.in.secure_channel_type,
&credentials1, &credentials2,
mach_password, &credentials3,
negotiate_flags);
creds = netlogon_creds_client_init(tctx, a.in.account_name,
a.in.computer_name,
+ a.in.secure_channel_type,
&credentials1, &credentials2,
&mach_password, &credentials3,
negotiate_flags);
creds_state = netlogon_creds_client_init(mem_ctx,
a.in.account_name,
a.in.computer_name,
+ a.in.secure_channel_type,
r.in.credentials,
r.out.return_credentials, &mach_pw,
&netr_cred, negotiate_flags);
creds_state = netlogon_creds_client_init(mem_ctx,
a.in.account_name,
a.in.computer_name,
+ a.in.secure_channel_type,
r.in.credentials,
r.out.return_credentials, &mach_pw,
&netr_cred, negotiate_flags);