summaryrefslogtreecommitdiff
path: root/source3/passdb
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2011-02-15 19:15:17 +0100
committerVolker Lendecke <vlendec@samba.org>2011-02-15 22:00:27 +0100
commitab85362cffbf844f4783b4e82fe7db8f9d5067bc (patch)
treeb6c946cb0691f7242254adc85846129cf792693a /source3/passdb
parent9ef0e1ef221d9c9552a45a1e302d49f417cef1b5 (diff)
downloadsamba-ab85362cffbf844f4783b4e82fe7db8f9d5067bc.tar.gz
samba-ab85362cffbf844f4783b4e82fe7db8f9d5067bc.tar.bz2
samba-ab85362cffbf844f4783b4e82fe7db8f9d5067bc.zip
s3: Support "codePage" in pdb_ads
Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Tue Feb 15 22:00:27 CET 2011 on sn-devel-104
Diffstat (limited to 'source3/passdb')
-rw-r--r--source3/passdb/pdb_ads.c8
1 files changed, 8 insertions, 0 deletions
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;
}