Lines Matching refs:libnetctx
46 struct libnet_context *libnetctx;
58 libnetctx = libnet_context_init(ctx->event_ctx, ctx->lp_ctx);
59 if (!libnetctx) {
62 libnetctx->cred = ctx->credentials;
68 status = libnet_SamDump_keytab(libnetctx, ctx, &r);
76 talloc_free(libnetctx);
90 struct libnet_context *libnetctx;
104 libnetctx = libnet_context_init(ctx->event_ctx, ctx->lp_ctx);
105 if (!libnetctx) {
108 libnetctx->cred = ctx->credentials;
114 status = libnet_SamDump(libnetctx, ctx, &r);
122 talloc_free(libnetctx);
143 struct libnet_context *libnetctx;
146 libnetctx = libnet_context_init(ctx->event_ctx, ctx->lp_ctx);
147 if (!libnetctx) {
150 libnetctx->cred = ctx->credentials;
157 r.in.session_info = system_session(libnetctx, ctx->lp_ctx);
159 status = libnet_samsync_ldb(libnetctx, libnetctx, &r);
167 talloc_free(libnetctx);
187 struct libnet_context *libnetctx;
208 libnetctx = libnet_context_init(ctx->event_ctx, ctx->lp_ctx);
209 if (!libnetctx) {
212 libnetctx->cred = ctx->credentials;
224 status = libnet_Vampire(libnetctx, r, r);
230 talloc_free(libnetctx);
235 talloc_free(libnetctx);