This will be used in the next commits.
BUG: https://bugzilla.samba.org/show_bug.cgi?id=14468
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
[abartlet@samba.org Backported from patch for master to use
the older popt functions as master has the new common command
line handling]
*/
#include "includes.h"
+#include "lib/cmdline/popt_common.h"
#include "librpc/gen_ndr/ndr_drsuapi_c.h"
#include "torture/rpc/torture_rpc.h"
#include "param/param.h"
torture_assert(tctx, priv, "Invalid argument");
+ priv->admin_credentials = popt_get_cmdline_credentials();
+
torture_comment(tctx, "Create DRSUAPI pipe\n");
status = torture_rpc_connection(tctx,
&priv->drs_pipe,
* Data structure common for most of DRSUAPI tests
*/
struct DsPrivate {
+ struct cli_credentials *admin_credentials;
struct dcerpc_pipe *drs_pipe;
struct policy_handle bind_handle;
struct drsuapi_DsBindInfo28 srv_bind_info;