r->comment.string = talloc_strdup(mem_ctx, pdb_get_comment(pw));
r->reserved.string = NULL;
r->country_code = pdb_get_country_code(pw);
- r->code_page = 0;
+ r->code_page = pdb_get_code_page(pw);
return NT_STATUS_OK;
}
r->password_expired = (pdb_get_pass_must_change_time(pw) == 0) ?
PASS_MUST_CHANGE_AT_NEXT_LOGON : 0;
r->country_code = pdb_get_country_code(pw);
- r->code_page = 0;
+ r->code_page = pdb_get_code_page(pw);
r->lm_password_set = 0;
r->nt_password_set = 0;
from->country_code, PDB_CHANGED);
}
}
+
+ if (from->fields_present & SAMR_FIELD_CODE_PAGE) {
+ DEBUG(10,("%s SAMR_FIELD_CODE_PAGE: %08X -> %08X\n", l,
+ pdb_get_code_page(to), from->code_page));
+ if (from->code_page != pdb_get_code_page(to)) {
+ pdb_set_code_page(to,
+ from->code_page, PDB_CHANGED);
+ }
+ }
}