2010-09-14 09:46:31 +04:00
/*
Unix SMB / CIFS implementation .
a composite API for finding a DC and its name
Copyright ( C ) Andrew Tridgell 2010
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
the Free Software Foundation ; either version 3 of the License , or
( 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
along with this program . If not , see < http : //www.gnu.org/licenses/>.
*/
2010-12-12 21:13:51 +03:00
# include "lib/messaging/messaging.h"
# include "libcli/libcli.h"
2011-01-07 14:01:42 +03:00
# include "libcli/netlogon/netlogon.h"
2024-10-29 17:35:37 +03:00
# include "lib/param/loadparm.h"
2010-09-14 09:46:31 +04:00
struct finddcs {
struct {
2024-10-29 17:35:37 +03:00
enum client_netlogon_ping_protocol proto ;
2010-09-14 14:10:51 +04:00
const char * domain_name ;
2010-09-14 09:46:31 +04:00
const char * site_name ; /* optional */
struct dom_sid * domain_sid ; /* optional */
uint32_t minimum_dc_flags ; /* DS_SERVER_* */
2010-09-24 06:49:12 +04:00
const char * server_address ; /* optional, bypass name
resolution */
2010-09-14 09:46:31 +04:00
} in ;
struct {
const char * address ; /* IP address of server */
2024-10-30 13:10:28 +03:00
struct netlogon_samlogon_response * netlogon ;
2010-09-14 09:46:31 +04:00
} out ;
} ;
# include "finddcs_proto.h"