From: Volker Lendecke Date: Tue, 15 Feb 2011 18:15:17 +0000 (+0100) Subject: s3: Support "codePage" in pdb_ads X-Git-Tag: tevent-0.9.11~642 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ab85362cffbf844f4783b4e82fe7db8f9d5067bc;p=thirdparty%2Fsamba.git s3: Support "codePage" in pdb_ads Autobuild-User: Volker Lendecke Autobuild-Date: Tue Feb 15 22:00:27 CET 2011 on sn-devel-104 --- diff --git a/source3/passdb/pdb_ads.c b/source3/passdb/pdb_ads.c index d45706a0e73..1dcf5adc534 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; }