r12858: This moves the libnet_LookupPdc code to use a GetDC request to find
[kamenim/samba.git] / source4 / libnet / libnet_passwd.c
index bd09e306ce243c7fd8dd0dffa43697cbd7244815..fe5239f4b666b63351f16b3c9a5425662d38d665 100644 (file)
@@ -53,7 +53,7 @@ static NTSTATUS libnet_ChangePassword_samr(struct libnet_context *ctx, TALLOC_CT
 
        /* prepare connect to the SAMR pipe of the users domain PDC */
        c.level                    = LIBNET_RPC_CONNECT_PDC;
-       c.in.domain_name           = r->samr.in.domain_name;
+       c.in.name                  = r->samr.in.domain_name;
        c.in.dcerpc_iface          = &dcerpc_table_samr;
 
        /* 1. connect to the SAMR pipe of users domain PDC (maybe a standalone server or workstation) */
@@ -513,9 +513,9 @@ static NTSTATUS libnet_SetPassword_samr(struct libnet_context *ctx, TALLOC_CTX *
        union libnet_SetPassword r2;
 
        /* prepare connect to the SAMR pipe of users domain PDC */
-       c.level                     = LIBNET_RPC_CONNECT_PDC;
-       c.in.domain_name            = r->samr.in.domain_name;
-       c.in.dcerpc_iface               = &dcerpc_table_samr;
+       c.level               = LIBNET_RPC_CONNECT_PDC;
+       c.in.name             = r->samr.in.domain_name;
+       c.in.dcerpc_iface     = &dcerpc_table_samr;
 
        /* 1. connect to the SAMR pipe of users domain PDC (maybe a standalone server or workstation) */
        status = libnet_RpcConnect(ctx, mem_ctx, &c);