s3-libnet: Pass enum value names to dcerpc_samr_SetUserInfo2()
authorAndreas Schneider <asn@samba.org>
Tue, 4 Oct 2016 16:14:50 +0000 (18:14 +0200)
committerJeremy Allison <jra@samba.org>
Thu, 6 Oct 2016 00:30:16 +0000 (02:30 +0200)
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/libnet/libnet_join.c

index 9436cc9..3ac7f39 100644 (file)
@@ -1415,7 +1415,7 @@ static NTSTATUS libnet_join_joindomain_rpc(TALLOC_CTX *mem_ctx,
 
        status = dcerpc_samr_SetUserInfo2(b, mem_ctx,
                                          &user_pol,
-                                         16,
+                                         UserControlInformation,
                                          &user_info,
                                          &result);
        if (!NT_STATUS_IS_OK(status)) {
@@ -1459,7 +1459,7 @@ static NTSTATUS libnet_join_joindomain_rpc(TALLOC_CTX *mem_ctx,
 
        status = dcerpc_samr_SetUserInfo2(b, mem_ctx,
                                          &user_pol,
-                                         26,
+                                         UserInternal5InformationNew,
                                          &user_info,
                                          &result);
 
@@ -1476,7 +1476,7 @@ static NTSTATUS libnet_join_joindomain_rpc(TALLOC_CTX *mem_ctx,
 
                status = dcerpc_samr_SetUserInfo2(b, mem_ctx,
                                                  &user_pol,
-                                                 24,
+                                                 UserInternal5Information,
                                                  &user_info,
                                                  &result);
        }