r6419: Fix strange behaviour of NET-USERDEL where account doesn't actually
authorRafal Szczesniak <mimir@samba.org>
Thu, 21 Apr 2005 12:21:14 +0000 (12:21 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 18:11:36 +0000 (13:11 -0500)
gets deleted.

rafal
(This used to be commit f78d1e4b35c7cb3d983da0bcb2717627b787d9f9)

source4/libnet/userman.c

index 6724206b2ebe7e302fe68ecc2c25bc57e5309d9b..9a8c1d6035aaf2523f7babd87f18c262b83b8aad 100644 (file)
@@ -314,11 +314,13 @@ struct composite_context *rpc_composite_userdel_send(struct dcerpc_pipe *p,
        s = talloc_zero(c, struct userdel_state);
        if (s == NULL) goto failure;
 
-       s->pipe = p;
        c->state      = SMBCLI_REQUEST_SEND;
        c->private    = s;
        c->event_ctx  = dcerpc_event_context(p);
 
+       s->pipe          = p;
+       s->domain_handle = io->in.domain_handle;
+
        s->lookupname.in.domain_handle = &io->in.domain_handle;
        s->lookupname.in.num_names     = 1;
        s->lookupname.in.names         = talloc_zero(s, struct samr_String);