if (!libnetctx) {
return -1;
}
- libnetctx->credentials = ctx->credentials;
+ libnetctx->cred = ctx->credentials;
/* prepare password change */
r.generic.level = LIBNET_JOIN_GENERIC;
if (!libnetctx) {
return -1;
}
- libnetctx->credentials = ctx->credentials;
+ libnetctx->cred = ctx->credentials;
/* prepare password change */
r.generic.level = LIBNET_CHANGE_PASSWORD_GENERIC;
if (!libnetctx) {
return -1;
}
- libnetctx->credentials = ctx->credentials;
+ libnetctx->cred = ctx->credentials;
/* prepare password change */
r.generic.level = LIBNET_SET_PASSWORD_GENERIC;
if (!libnetctx) {
return -1;
}
- libnetctx->credentials = ctx->credentials;
+ libnetctx->cred = ctx->credentials;
/* prepare to get the time */
r.generic.level = LIBNET_REMOTE_TOD_GENERIC;
lnet_ctx = libnet_context_init();
if (!lnet_ctx) return -1;
- lnet_ctx->credentials = ctx->credentials;
+ lnet_ctx->cred = ctx->credentials;
/* calling CreateUser function */
r.generic.level = LIBNET_CREATE_USER_GENERIC;
r.generic.in.user_name = user_name;
- r.generic.in.domain_name = cli_credentials_get_domain(lnet_ctx->credentials);
+ r.generic.in.domain_name = cli_credentials_get_domain(lnet_ctx->cred);
status = libnet_CreateUser(lnet_ctx, ctx->mem_ctx, &r);
if (!NT_STATUS_IS_OK(status)) {
if (!libnetctx) {
return -1;
}
- libnetctx->credentials = ctx->credentials;
+ libnetctx->cred = ctx->credentials;
/* prepare password change */
r.generic.level = LIBNET_SAMDUMP_GENERIC;