netapi: fix convert_USER_INFO_X_to_samr_user_info21.
authorGünther Deschner <gd@samba.org>
Tue, 26 Aug 2008 22:57:07 +0000 (00:57 +0200)
committerGünther Deschner <gd@samba.org>
Fri, 29 Aug 2008 11:57:55 +0000 (13:57 +0200)
Guenther
(This used to be commit 3f726952eb9a1fed0f4a990c82a2c47a5c0775be)

source3/lib/netapi/user.c

index 045491c541f8c313c262883a8b8207edc77ca277..d70a790b81b5cbbd2856b7e7b4abdb873b2aca41 100644 (file)
@@ -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,