From 41fa94363fe1e22b4b7fc3360e9b130607b1dc12 Mon Sep 17 00:00:00 2001
From: Günther Deschner <gd@samba.org>
Date: Wed, 27 Aug 2008 00:57:07 +0200
Subject: netapi: fix convert_USER_INFO_X_to_samr_user_info21.

Guenther
(This used to be commit 3f726952eb9a1fed0f4a990c82a2c47a5c0775be)
---
 source3/lib/netapi/user.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/source3/lib/netapi/user.c b/source3/lib/netapi/user.c
index 045491c541..d70a790b81 100644
--- a/source3/lib/netapi/user.c
+++ b/source3/lib/netapi/user.c
@@ -41,7 +41,7 @@ static void convert_USER_INFO_X_to_samr_user_info21(struct USER_INFO_X *infoX,
 	ZERO_STRUCT(zero_parameters);
 
 	if (infoX->usriX_name) {
-		fields_present |= SAMR_FIELD_FULL_NAME;
+		fields_present |= SAMR_FIELD_ACCOUNT_NAME;
 	}
 	if (infoX->usriX_password) {
 		fields_present |= SAMR_FIELD_PASSWORD;
@@ -77,8 +77,8 @@ static void convert_USER_INFO_X_to_samr_user_info21(struct USER_INFO_X *infoX,
 			      0,
 			      0,
 			      password_age,
-			      NULL,
 			      infoX->usriX_name,
+			      NULL,
 			      infoX->usriX_home_dir,
 			      NULL,
 			      infoX->usriX_script_path,
-- 
cgit