From ab85362cffbf844f4783b4e82fe7db8f9d5067bc Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Tue, 15 Feb 2011 19:15:17 +0100 Subject: s3: Support "codePage" in pdb_ads Autobuild-User: Volker Lendecke Autobuild-Date: Tue Feb 15 22:00:27 CET 2011 on sn-devel-104 --- source3/passdb/pdb_ads.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'source3/passdb') diff --git a/source3/passdb/pdb_ads.c b/source3/passdb/pdb_ads.c index d45706a0e7..1dcf5adc53 100644 --- a/source3/passdb/pdb_ads.c +++ b/source3/passdb/pdb_ads.c @@ -309,6 +309,10 @@ static NTSTATUS pdb_ads_init_sam_from_priv(struct pdb_methods *m, pdb_set_country_code(sam, i, PDB_SET); } + if (tldap_pull_uint32(entry, "codePage", &i)) { + pdb_set_code_page(sam, i, PDB_SET); + } + status = NT_STATUS_OK; fail: TALLOC_FREE(frame); @@ -404,6 +408,10 @@ static bool pdb_ads_init_ads_from_sam(struct pdb_ads_state *state, existing, mem_ctx, pmods, pnum_mods, "countryCode", "%i", (int)pdb_get_country_code(sam)); + ret &= tldap_make_mod_fmt( + existing, mem_ctx, pmods, pnum_mods, "codePage", + "%i", (int)pdb_get_code_page(sam)); + fail: return ret; } -- cgit