From 58e8db912d2213a594714ac29866396098662557 Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Thu, 18 Jun 2009 12:33:46 +1000 Subject: 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 --- source4/libnet/libnet_time.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'source4/libnet/libnet_time.c') diff --git a/source4/libnet/libnet_time.c b/source4/libnet/libnet_time.c index 61a451d3fd..37648459db 100644 --- a/source4/libnet/libnet_time.c +++ b/source4/libnet/libnet_time.c @@ -33,6 +33,8 @@ static NTSTATUS libnet_RemoteTOD_srvsvc(struct libnet_context *ctx, TALLOC_CTX * struct srvsvc_NetRemoteTODInfo *info = NULL; struct tm tm; + ZERO_STRUCT(c); + /* prepare connect to the SRVSVC pipe of a timeserver */ c.level = LIBNET_RPC_CONNECT_SERVER; c.in.name = r->srvsvc.in.server_name; -- cgit