]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3-libnetapi: add NetRequestOfflineDomainJoin to api
authorGünther Deschner <gd@samba.org>
Mon, 8 Feb 2021 14:50:21 +0000 (15:50 +0100)
committerGünther Deschner <gd@samba.org>
Wed, 14 Jul 2021 16:49:30 +0000 (16:49 +0000)
Guenther

Signed-off-by: Guenther Deschner <gd@samba.org>
Reviewed-by: Alexander Bokovoy <ab@samba.org>
source3/lib/netapi/netapi.h

index 96b136f7bdbc09249208db87e306a36d5207cdd5..df465aef51b1fecad956d46b3da32ffe2183e407 100644 (file)
@@ -105,6 +105,9 @@ struct DOMAIN_CONTROLLER_INFO {
 #define NETSETUP_PROVISION_SKIP_ACCOUNT_SEARCH ( 0x00000008 )
 #define NETSETUP_PROVISION_ROOT_CA_CERTS ( 0x00000010 )
 
+/* bitmap NetProvisionJoinFlags */
+#define NETSETUP_PROVISION_ONLINE_CALLER ( 0x40000000 )
+
 #define FILTER_TEMP_DUPLICATE_ACCOUNT  ( 0x0001 )
 #define FILTER_NORMAL_ACCOUNT  ( 0x0002 )
 #define FILTER_INTERDOMAIN_TRUST_ACCOUNT       ( 0x0008 )
@@ -1649,6 +1652,27 @@ NET_API_STATUS NetProvisionComputerAccount(const char * domain /* [in] [ref] */,
                                           uint32_t *provision_bin_data_size /* [in,out] [unique] */,
                                           const char * *provision_text_data /* [in,out] [unique] */);
 
+/************************************************************//**
+ *
+ * NetRequestOfflineDomainJoin
+ *
+ * @brief Request an offline domain join
+ *
+ * @param[in] provision_bin_data The provided binary buffer
+ * @param[in] provision_bin_data_size The provided binary buffer size
+ * @param[in] options The options used for account creation
+ * @param[in] windows_path The path for the joined image
+ * @return NET_API_STATUS
+ *
+ * example join/request_offline_domain_join.c
+ *
+ ***************************************************************/
+
+NET_API_STATUS NetRequestOfflineDomainJoin(uint8_t *provision_bin_data /* [in] [unique] */,
+                                          uint32_t provision_bin_data_size /* [in] */,
+                                          uint32_t options /* [in] */,
+                                          const char * windows_path /* [in] [unique] */);
+
 /************************************************************//**
  *
  * NetServerGetInfo