2 Unix SMB/CIFS implementation.
6 Copyright (C) Volker Lendecke 2005
8 This program is free software; you can redistribute it and/or modify
9 it under the terms of the GNU General Public License as published by
10 the Free Software Foundation; either version 2 of the License, or
11 (at your option) any later version.
13 This program is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 GNU General Public License for more details.
18 You should have received a copy of the GNU General Public License
19 along with this program; if not, write to the Free Software
20 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
23 #ifndef _RPC_UNIXINFO_H
24 #define _RPC_UNIXINFO_H
26 #define UNIXINFO_SID_TO_UID 0x00
27 #define UNIXINFO_UID_TO_SID 0x01
28 #define UNIXINFO_SID_TO_GID 0x02
29 #define UNIXINFO_GID_TO_SID 0x03
30 #define UNIXINFO_GETPWUID 0x04
32 typedef struct unixinfo_q_sid_to_uid
{
34 } UNIXINFO_Q_SID_TO_UID
;
36 typedef struct unixinfo_r_sid_to_uid
{
39 } UNIXINFO_R_SID_TO_UID
;
41 typedef struct unixinfo_q_uid_to_sid
{
43 } UNIXINFO_Q_UID_TO_SID
;
45 typedef struct unixinfo_r_uid_to_sid
{
49 } UNIXINFO_R_UID_TO_SID
;
51 typedef struct unixinfo_q_sid_to_gid
{
53 } UNIXINFO_Q_SID_TO_GID
;
55 typedef struct unixinfo_r_sid_to_gid
{
58 } UNIXINFO_R_SID_TO_GID
;
60 typedef struct unixinfo_q_gid_to_sid
{
62 } UNIXINFO_Q_GID_TO_SID
;
64 typedef struct unixinfo_r_gid_to_sid
{
68 } UNIXINFO_R_GID_TO_SID
;
70 typedef struct unixinfo_q_getpwuid
{
73 } UNIXINFO_Q_GETPWUID
;
75 struct unixinfo_getpwuid
{
76 /* name, gid and gecos explicitly excluded, these values can be
77 retrieved via other means */
83 typedef struct unixinfo_r_getpwuid
{
85 struct unixinfo_getpwuid
*info
;
87 } UNIXINFO_R_GETPWUID
;
91 Unix SMB/CIFS implementation.
95 Copyright (C) Volker Lendecke 2005
97 This program is free software; you can redistribute it and/or modify
98 it under the terms of the GNU General Public License as published by
99 the Free Software Foundation; either version 2 of the License, or
100 (at your option) any later version.
102 This program is distributed in the hope that it will be useful,
103 but WITHOUT ANY WARRANTY; without even the implied warranty of
104 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
105 GNU General Public License for more details.
107 You should have received a copy of the GNU General Public License
108 along with this program; if not, write to the Free Software
109 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
112 #ifndef _RPC_UNIXINFO_H
113 #define _RPC_UNIXINFO_H
115 #define UNIXINFO_SID_TO_UID 0x00
116 #define UNIXINFO_UID_TO_SID 0x01
117 #define UNIXINFO_SID_TO_GID 0x02
118 #define UNIXINFO_GID_TO_SID 0x03
119 #define UNIXINFO_GETPWUID 0x04
121 typedef struct unixinfo_q_sid_to_uid
{
123 } UNIXINFO_Q_SID_TO_UID
;
125 typedef struct unixinfo_r_sid_to_uid
{
128 } UNIXINFO_R_SID_TO_UID
;
130 typedef struct unixinfo_q_uid_to_sid
{
132 } UNIXINFO_Q_UID_TO_SID
;
134 typedef struct unixinfo_r_uid_to_sid
{
138 } UNIXINFO_R_UID_TO_SID
;
140 typedef struct unixinfo_q_sid_to_gid
{
142 } UNIXINFO_Q_SID_TO_GID
;
144 typedef struct unixinfo_r_sid_to_gid
{
147 } UNIXINFO_R_SID_TO_GID
;
149 typedef struct unixinfo_q_gid_to_sid
{
151 } UNIXINFO_Q_GID_TO_SID
;
153 typedef struct unixinfo_r_gid_to_sid
{
157 } UNIXINFO_R_GID_TO_SID
;
159 typedef struct unixinfo_q_getpwuid
{
161 } UNIXINFO_Q_GETPWUID
;
163 typedef struct unixinfo_r_getpwuid
{
164 /* name and gid explicitly excluded, these values can be retrieved via
170 } UNIXINFO_R_GETPWUID
;