Add NetGetJoinInformation().
[samba.git] / source / lib / netapi / joindomain.h
1 /*
2  *  Unix SMB/CIFS implementation.
3  *  NetApi Support
4  *  Copyright (C) Guenther Deschner 2007
5  *
6  *  This program is free software; you can redistribute it and/or modify
7  *  it under the terms of the GNU General Public License as published by
8  *  the Free Software Foundation; either version 3 of the License, or
9  *  (at your option) any later version.
10  *
11  *  This program is distributed in the hope that it will be useful,
12  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
13  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14  *  GNU General Public License for more details.
15  *
16  *  You should have received a copy of the GNU General Public License
17  *  along with this program; if not, see <http://www.gnu.org/licenses/>.
18  */
19
20 WERROR NetJoinDomain(const char *server,
21                      const char *domain,
22                      const char *account_ou,
23                      const char *account,
24                      const char *password,
25                      uint32_t join_options);
26 WERROR NetUnjoinDomain(const char *server_name,
27                        const char *account,
28                        const char *password,
29                        uint32_t unjoin_flags);
30 WERROR NetGetJoinInformation(const char *server_name,
31                              const char **name_buffer,
32                              uint16_t *name_type);