diff options
author | Andrew Bartlett <abartlet@samba.org> | 2009-06-18 12:33:46 +1000 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2009-06-18 13:49:30 +1000 |
commit | 58e8db912d2213a594714ac29866396098662557 (patch) | |
tree | 1fba34e4ef93aa73e9839ad876460e6aa157a2fb /source4/libnet/libnet_samsync.c | |
parent | 19413c52495877d54c90c60229568d0077fda30b (diff) | |
download | samba-58e8db912d2213a594714ac29866396098662557.tar.gz samba-58e8db912d2213a594714ac29866396098662557.tar.bz2 samba-58e8db912d2213a594714ac29866396098662557.zip |
s4:libnet Allow 'net password change' to work on expired passwords
We need to pass down flags to the DCE/RPC layer to allow fallback to
anonymous connections, as we can't log in with an expired password.
The anonymous connection can then change the password with SAMR.
Andrew Bartlett
Diffstat (limited to 'source4/libnet/libnet_samsync.c')
-rw-r--r-- | source4/libnet/libnet_samsync.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/libnet/libnet_samsync.c b/source4/libnet/libnet_samsync.c index 4d512d6034..1d5e41de05 100644 --- a/source4/libnet/libnet_samsync.c +++ b/source4/libnet/libnet_samsync.c @@ -77,7 +77,7 @@ NTSTATUS libnet_SamSync_netlogon(struct libnet_context *ctx, TALLOC_CTX *mem_ctx return NT_STATUS_CANT_ACCESS_DOMAIN_INFO; } - c = talloc(samsync_ctx, struct libnet_RpcConnect); + c = talloc_zero(samsync_ctx, struct libnet_RpcConnect); if (!c) { r->out.error_string = NULL; talloc_free(samsync_ctx); |