~zulcss/samba/server-dailies-3.4

« back to all changes in this revision

Viewing changes to source4/libnet/libnet_group.h

  • Committer: Chuck Short
  • Date: 2010-09-28 20:38:39 UTC
  • Revision ID: zulcss@ubuntu.com-20100928203839-pgjulytsi9ue63x1
Initial version

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* 
 
2
   Unix SMB/CIFS implementation.
 
3
 
 
4
   Copyright (C) Rafal Szczesniak  2007
 
5
   
 
6
   This program is free software; you can redistribute it and/or modify
 
7
   it under the terms of the GNU General Public License as published by
 
8
   the Free Software Foundation; either version 3 of the License, or
 
9
   (at your option) any later version.
 
10
   
 
11
   This program is distributed in the hope that it will be useful,
 
12
   but WITHOUT ANY WARRANTY; without even the implied warranty of
 
13
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
14
   GNU General Public License for more details.
 
15
   
 
16
   You should have received a copy of the GNU General Public License
 
17
   along with this program; if not, write to the Free Software
 
18
   Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 
19
*/
 
20
 
 
21
 
 
22
struct libnet_CreateGroup {
 
23
        struct {
 
24
                const char *group_name;
 
25
                const char *domain_name;
 
26
        } in;
 
27
        struct {
 
28
                const char *error_string;
 
29
        } out;
 
30
};
 
31
 
 
32
enum libnet_GroupInfo_level {
 
33
        GROUP_INFO_BY_NAME=0,
 
34
        GROUP_INFO_BY_SID
 
35
};
 
36
 
 
37
struct libnet_GroupInfo {
 
38
        struct {
 
39
                const char *domain_name;
 
40
                enum libnet_GroupInfo_level level;
 
41
                union {
 
42
                        const char *group_name;
 
43
                        const struct dom_sid *group_sid;
 
44
                } data;
 
45
        } in;
 
46
        struct {
 
47
                const char *group_name;
 
48
                struct dom_sid *group_sid;
 
49
                uint32_t num_members;
 
50
                const char *description;
 
51
 
 
52
                const char *error_string;
 
53
        } out;
 
54
};
 
55
 
 
56
 
 
57
struct libnet_GroupList {
 
58
        struct {
 
59
                const char *domain_name;
 
60
                int page_size;
 
61
                uint resume_index;
 
62
        } in;
 
63
        struct {
 
64
                int count;
 
65
                uint resume_index;
 
66
                
 
67
                struct grouplist {
 
68
                        const char *sid;
 
69
                        const char *groupname;
 
70
                } *groups;
 
71
 
 
72
                const char *error_string;
 
73
        } out;
 
74
};