/* Step 1. Initialize the emsmdbp context */
emsmdbp_ctx = emsmdbp_init(dce_call->conn->dce_ctx->lp_ctx,
- dce_call->context->conn->auth_state.session_info->info->account_name,
+ dcesrv_call_account_name(dce_call),
openchange_ldb_ctx);
if (!emsmdbp_ctx) {
smb_panic("unable to initialize emsmdbp context");
/* Step 1. Initialize the emsmdbp context */
emsmdbp_ctx = emsmdbp_init(dce_call->conn->dce_ctx->lp_ctx,
- dce_call->context->conn->auth_state.session_info->info->account_name,
+ dcesrv_call_account_name(dce_call),
openchange_ldb_ctx);
if (!emsmdbp_ctx) {
smb_panic("Unable to initialize emsmdbp context");