summaryrefslogtreecommitdiff
path: root/source4/libnet/libnet.h
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2004-08-19 15:04:14 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:58:11 -0500
commitbd225f8c28a798d0b40c68bc617cde2beac0a88c (patch)
treec5d284b91c73f58df4554c34f8a7e9e7983282d3 /source4/libnet/libnet.h
parent3ccba74549a66d469eff16a524f012d73a7f8aed (diff)
downloadsamba-bd225f8c28a798d0b40c68bc617cde2beac0a88c.tar.gz
samba-bd225f8c28a798d0b40c68bc617cde2beac0a88c.tar.bz2
samba-bd225f8c28a798d0b40c68bc617cde2beac0a88c.zip
r1925: now we lookup the domain controller
and fallback to a workstation name metze (This used to be commit 2012d90f268f69a3a4e5890a0f3615237853bd0b)
Diffstat (limited to 'source4/libnet/libnet.h')
-rw-r--r--source4/libnet/libnet.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/source4/libnet/libnet.h b/source4/libnet/libnet.h
index 0a96e6c530..72c2fecdad 100644
--- a/source4/libnet/libnet.h
+++ b/source4/libnet/libnet.h
@@ -32,6 +32,26 @@ struct libnet_context {
} user;
};
+/* struct and enum for finding a domain controller */
+enum libnet_find_pdc_level {
+ LIBNET_FIND_PDC_GENERIC
+};
+
+union libnet_find_pdc {
+ /* find to a domains PDC */
+ struct {
+ enum libnet_find_pdc_level level;
+
+ struct {
+ const char *domain_name;
+ } in;
+
+ struct {
+ const char *pdc_name;
+ } out;
+ } generic;
+};
+
/* struct and enum for connecting to a dcerpc inferface */
enum libnet_rpc_connect_level {
LIBNET_RPC_CONNECT_PDC