s4:provision Raise default max functional level to 2008R2
[kai/samba.git] / source4 / libnet / libnet_join.h
index 9e7748b4dd7cdd4a023f63f04ad044587cbf61c0..79884130d8a48743ac40ed5db6cfc3d38bd5a8a2 100644 (file)
@@ -7,7 +7,7 @@
    
    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 2 of the License, or
+   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,
@@ -16,8 +16,7 @@
    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, write to the Free Software
-   Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+   along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
 
 #ifndef __LIBNET_JOIN_H__
@@ -43,7 +42,7 @@ struct libnet_JoinDomain {
                const char *binding;
                enum libnet_JoinDomain_level level;
                uint32_t  acct_type;
-               BOOL recreate_account;
+               bool recreate_account;
        } in;
 
        struct {
@@ -80,5 +79,22 @@ struct libnet_Join {
        } out;
 };
 
+struct libnet_set_join_secrets {
+       struct {
+               const char *domain_name;
+               const char *realm;
+               const char *netbios_name;
+               const char *account_name;
+               enum netr_SchannelType join_type;
+               const char *join_password;
+               int kvno;
+               struct dom_sid *domain_sid;
+       } in;
+       
+       struct {
+               const char *error_string;
+       } out;
+};
+
 
 #endif /* __LIBNET_JOIN_H__ */