diff options
author | Andrew Bartlett <abartlet@samba.org> | 2005-01-15 22:13:18 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:08:51 -0500 |
commit | 8799d6b44c15a5e11c1e3528092fbca236561253 (patch) | |
tree | a15319faa56787080f1ab1a889f3d06b84c3d51b /source4/libnet/libnet_join.h | |
parent | a7bbb190d9845a74c21369ca32eb8446982477db (diff) | |
download | samba-8799d6b44c15a5e11c1e3528092fbca236561253.tar.gz samba-8799d6b44c15a5e11c1e3528092fbca236561253.tar.bz2 samba-8799d6b44c15a5e11c1e3528092fbca236561253.zip |
r4762: Store the results of a 'net join' in the LDB.
Like Samba3, the storage of the primary domain password is keyed off
the domain name, so we can join multiple domains, and just swap
'workgroup =' around.
Andrew Bartlett
(This used to be commit 54a231780e028c6433cac296f2fbc64e39632dfd)
Diffstat (limited to 'source4/libnet/libnet_join.h')
-rw-r--r-- | source4/libnet/libnet_join.h | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/source4/libnet/libnet_join.h b/source4/libnet/libnet_join.h index 8788016e8e..830599929b 100644 --- a/source4/libnet/libnet_join.h +++ b/source4/libnet/libnet_join.h @@ -19,6 +19,8 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ +#include "librpc/gen_ndr/ndr_netlogon.h" + /* struct and enum for doing a remote domain join */ enum libnet_JoinDomain_level { LIBNET_JOIN_DOMAIN_GENERIC, @@ -49,3 +51,30 @@ union libnet_JoinDomain { }; +/* struct and enum for doing a remote domain join */ +enum libnet_Join_level { + LIBNET_JOIN_GENERIC, + LIBNET_JOIN_PRIMARY, +}; + +union libnet_Join { + struct { + enum libnet_Join_level level; + + struct _libnet_Join_in { + const char *domain_name; + enum netr_SchannelType secure_channel_type; + } in; + + struct _libnet_Join_out { + const char *error_string; + } out; + } generic; + + struct { + enum libnet_Join_level level; + struct _libnet_Join_in in; + struct _libnet_Join_out out; + } ldb; +}; + |