diff options
author | Andrew Tridgell <tridge@samba.org> | 2010-11-27 23:53:00 +1100 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2010-11-27 15:16:02 +0100 |
commit | 847b909b6ee70d140ebbd3800b3f1e2d51e15e97 (patch) | |
tree | 67788b0957543e9b321b4352d6f83c569e7f06c7 /source4/samba_tool/drs/drs.h | |
parent | 3d8d382fe57125c1752cab85f9edcb094887b9dc (diff) | |
download | samba-847b909b6ee70d140ebbd3800b3f1e2d51e15e97.tar.gz samba-847b909b6ee70d140ebbd3800b3f1e2d51e15e97.tar.bz2 samba-847b909b6ee70d140ebbd3800b3f1e2d51e15e97.zip |
s4-samba-tool: removed old C implementation of samba-tool drs
Autobuild-User: Andrew Tridgell <tridge@samba.org>
Autobuild-Date: Sat Nov 27 15:16:02 CET 2010 on sn-devel-104
Diffstat (limited to 'source4/samba_tool/drs/drs.h')
-rw-r--r-- | source4/samba_tool/drs/drs.h | 87 |
1 files changed, 0 insertions, 87 deletions
diff --git a/source4/samba_tool/drs/drs.h b/source4/samba_tool/drs/drs.h deleted file mode 100644 index 1e4cccc538..0000000000 --- a/source4/samba_tool/drs/drs.h +++ /dev/null @@ -1,87 +0,0 @@ -/* - Unix SMB/CIFS implementation. - - Implements functions offered by repadmin.exe tool under Windows - - Copyright (C) Kamen Mazdrashki <kamen.mazdrashki@postpath.com> 2010 - - 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 3 of the License, or - (at your option) any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - 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, see <http://www.gnu.org/licenses/>. -*/ - -#ifndef SAMBA_TOOL_DRS_H_ -#define SAMBA_TOOL_DRS_H_ - -#include "librpc/gen_ndr/ndr_drsuapi_c.h" - - -/** - * Check for critical error - */ -#define NET_DRS_CHECK_GOTO(_condition,_label,_msg) \ - do { \ - if (!(_condition)) { \ - d_printf(__location__": "#_condition" - %s\n", _msg); \ - goto _label; \ - } \ - } while (0) - -/** - * check allocated memory macro - */ -#define NET_DRS_NOMEM_GOTO(_ptr,_label) \ - NET_DRS_CHECK_GOTO(_ptr, _label, "Not enough memory!") - - -/** - * DRSUAPI binding context - */ -struct net_drs_connection { - /* DRSUAPI connection context */ - struct dcerpc_binding *binding; - struct dcerpc_pipe *drs_pipe; - struct dcerpc_binding_handle *drs_handle; - struct policy_handle bind_handle; - - /* length of bind info structure returned by remote DC - * 'net drs bind' command make use of this value */ - uint32_t bind_info_len; - - /* remote DC DRSUAPI capabilities */ - struct drsuapi_DsBindInfo48 info48; -}; - - -/** - * net drs commands context - */ -struct net_drs_context { - struct net_context *net_ctx; - - /* remote DC name supplied from command line */ - const char *dc_name; - - /* DRSUAPI connection to target DC */ - struct net_drs_connection *drs_conn; - - /* LDAP connection to DC */ - struct net_drs_ldap { - struct ldb_context *ldb; - const struct ldb_message *rootdse; - } ldap; -}; - - -#include "samba_tool/drs/drs_proto.h" - -#endif /* SAMBA_TOOL_DRS_H_ */ |