s3-samr: avoid all init_samr_group* functions.
authorGünther Deschner <gd@samba.org>
Sat, 6 Dec 2008 00:41:28 +0000 (01:41 +0100)
committerGünther Deschner <gd@samba.org>
Tue, 6 Jan 2009 15:02:11 +0000 (16:02 +0100)
Guenther

source3/rpc_server/srv_samr_nt.c

index 3322c6a136b2efbd96fe009b932655fed2c88b9b..b06bd58d2d49682e1184d43c64d8d9e3733d5a89 100644 (file)
@@ -5114,24 +5114,20 @@ NTSTATUS _samr_QueryGroupInfo(pipes_struct *p,
                                return status;
                        }
 
-                       init_samr_group_info1(&info->all,
-                                             group_name,
-                                             attributes,
-                                             num_members,
-                                             group_description);
+                       info->all.name.string           = group_name;
+                       info->all.attributes            = attributes;
+                       info->all.num_members           = num_members;
+                       info->all.description.string    = group_description;
                        break;
                }
                case 2:
-                       init_samr_group_info2(&info->name,
-                                             group_name);
+                       info->name.string = group_name;
                        break;
                case 3:
-                       init_samr_group_info3(&info->attributes,
-                                             attributes);
+                       info->attributes.attributes = attributes;
                        break;
                case 4:
-                       init_samr_group_info4(&info->description,
-                                             group_description);
+                       info->description.string = group_description;
                        break;
                case 5: {
                        /*
@@ -5149,11 +5145,10 @@ NTSTATUS _samr_QueryGroupInfo(pipes_struct *p,
                                return status;
                        }
                        */
-                       init_samr_group_info5(&info->all2,
-                                             group_name,
-                                             attributes,
-                                             0, /* num_members - in w2k3 this is always 0 */
-                                             group_description);
+                       info->all2.name.string          = group_name;
+                       info->all2.attributes           = attributes;
+                       info->all2.num_members          = 0; /* num_members - in w2k3 this is always 0 */
+                       info->all2.description.string   = group_description;
 
                        break;
                }