2006-05-16 01:49:27 +04:00
/*
Unix SMB / CIFS implementation .
Copyright ( C ) Rafal Szczesniak 2005
This program is free software ; you can redistribute it and / or modify
it under the terms of the GNU General Public License as published by
2007-07-10 06:07:03 +04:00
the Free Software Foundation ; either version 3 of the License , or
2006-05-16 01:49:27 +04:00
( at your option ) any later version .
This program is distributed in the hope that it will be useful ,
but WITHOUT ANY WARRANTY ; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE . See the
GNU General Public License for more details .
You should have received a copy of the GNU General Public License
2007-07-10 06:07:03 +04:00
along with this program . If not , see < http : //www.gnu.org/licenses/>.
2006-05-16 01:49:27 +04:00
*/
2006-08-22 00:52:14 +04:00
enum service_type { DOMAIN_SAMR , DOMAIN_LSA } ;
2006-05-16 01:49:27 +04:00
/*
* struct definition for opening a domain
*/
struct libnet_DomainOpen {
struct {
2006-08-22 00:52:14 +04:00
enum service_type type ;
2006-05-16 01:49:27 +04:00
const char * domain_name ;
uint32_t access_mask ;
} in ;
struct {
struct policy_handle domain_handle ;
2006-08-22 00:52:14 +04:00
const char * error_string ;
} out ;
} ;
struct libnet_DomainClose {
struct {
enum service_type type ;
const char * domain_name ;
} in ;
struct {
const char * error_string ;
2006-05-16 01:49:27 +04:00
} out ;
} ;
2007-04-29 16:31:09 +04:00
struct libnet_DomainList {
struct {
const char * hostname ;
} in ;
struct {
int count ;
struct domainlist {
const char * sid ;
const char * name ;
} * domains ;
const char * error_string ;
} out ;
} ;
2007-07-19 01:24:37 +04:00
struct msg_rpc_lookup_domain {
const char * domain_name ;
} ;