diff options
author | Andrew Bartlett <abartlet@samba.org> | 2009-04-06 22:56:13 +1000 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2009-04-14 16:23:44 +1000 |
commit | baf7274fed2f1ae7a9e3a57160bf5471566e636c (patch) | |
tree | b6bbaad24556ecf5e3cb93eae6470f67229ab12f /source3/auth/auth_netlogond.c | |
parent | 5095d7b1c84e7e37f553867d699a1983f74d4314 (diff) | |
download | samba-baf7274fed2f1ae7a9e3a57160bf5471566e636c.tar.gz samba-baf7274fed2f1ae7a9e3a57160bf5471566e636c.tar.bz2 samba-baf7274fed2f1ae7a9e3a57160bf5471566e636c.zip |
Make Samba3 use the new common libcli/auth code
This is particuarly in the netlogon client (but not server at this
stage)
Diffstat (limited to 'source3/auth/auth_netlogond.c')
-rw-r--r-- | source3/auth/auth_netlogond.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/source3/auth/auth_netlogond.c b/source3/auth/auth_netlogond.c index d595e27a60..3947873aaa 100644 --- a/source3/auth/auth_netlogond.c +++ b/source3/auth/auth_netlogond.c @@ -69,15 +69,13 @@ static NTSTATUS netlogond_validate(TALLOC_CTX *mem_ctx, * rpccli_netlogon_sam_network_logon_ex can decrypt the session keys. */ - p->dc = talloc(p, struct dcinfo); + p->dc = netlogon_creds_client_init_session_key(p, schannel_key); if (p->dc == NULL) { DEBUG(0, ("talloc failed\n")); TALLOC_FREE(p); return NT_STATUS_NO_MEMORY; } - memcpy(p->dc->sess_key, schannel_key, 16); - status = rpccli_netlogon_sam_network_logon_ex( p, p, user_info->logon_parameters,/* flags such as 'allow @@ -257,7 +255,7 @@ static NTSTATUS check_netlogond_security(const struct auth_context *auth_context goto done; } - memcpy(schannel_key, p->dc->sess_key, 16); + memcpy(schannel_key, p->dc->session_key, 16); secrets_store_local_schannel_key(schannel_key); TALLOC_FREE(p); |