The two new functions - libnet_LookupName and libnet_UserInfo.
[samba-svnmirror.git] / source / libnet / libnet_lookup.h
1 /* 
2    Unix SMB/CIFS implementation.
3
4    Copyright (C) Rafal Szczesniak 2005
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 2 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_Lookup {
23         struct {
24                 const char *hostname;
25                 int type;
26                 const char **methods;
27         } in;
28         struct {
29                 const char **address;
30         } out;
31 };
32
33
34 struct libnet_LookupDCs {
35         struct {
36                 const char *domain_name;
37                 int name_type;
38         } in;
39         struct {
40                 int num_dcs;
41                 struct nbt_dc_name *dcs;
42         } out;
43 };
44
45
46 struct libnet_LookupName {
47         struct {
48                 const char *name;
49                 const char *domain_name;
50         } in;
51         struct {
52                 struct dom_sid domain_sid;
53                 int rid;
54                 enum lsa_SidType sid_type;
55                 const char *sidstr;
56                 const char *error_string;
57         } out;
58 };