netapi: process level 1003 in construct_USER_INFO_X as well.
authorGünther Deschner <gd@samba.org>
Tue, 26 Aug 2008 22:33:16 +0000 (00:33 +0200)
committerGünther Deschner <gd@samba.org>
Fri, 29 Aug 2008 11:57:54 +0000 (13:57 +0200)
Guenther
(This used to be commit cf381b9f08cae32b62d7bd6f7dfe5210e732eeb2)

source3/lib/netapi/user.c

index 608c1a1d8d9cf7ffd90ded28fbcf48eb5644c64a..97eb9d8002db70e47db384e654faf593fb10d017 100644 (file)
@@ -111,6 +111,7 @@ static NTSTATUS construct_USER_INFO_X(uint32_t level,
        struct USER_INFO_0 *u0 = NULL;
        struct USER_INFO_1 *u1 = NULL;
        struct USER_INFO_2 *u2 = NULL;
+       struct USER_INFO_1003 *u1003 = NULL;
        struct USER_INFO_1007 *u1007 = NULL;
 
        if (!buffer || !uX) {
@@ -162,6 +163,10 @@ static NTSTATUS construct_USER_INFO_X(uint32_t level,
                        uX->usriX_country_code  = u2->usri2_country_code;
                        uX->usriX_code_page     = u2->usri2_code_page;
                        break;
+               case 1003:
+                       u1003 = (struct USER_INFO_1003 *)buffer;
+                       uX->usriX_password      = u1003->usri1003_password;
+                       break;
                case 1007:
                        u1007 = (struct USER_INFO_1007 *)buffer;
                        uX->usriX_comment       = u1007->usri1007_comment;