git.samba.org
/
mat
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9ef0e1e
)
s3: Support "codePage" in pdb_ads
author
Volker Lendecke
<vl@samba.org>
Tue, 15 Feb 2011 18:15:17 +0000
(19:15 +0100)
committer
Volker Lendecke
<vlendec@samba.org>
Tue, 15 Feb 2011 21:00:27 +0000
(22:00 +0100)
Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Tue Feb 15 22:00:27 CET 2011 on sn-devel-104
source3/passdb/pdb_ads.c
patch
|
blob
|
history
diff --git
a/source3/passdb/pdb_ads.c
b/source3/passdb/pdb_ads.c
index d45706a0e73ff35f0749b525b7105eaa6b9b5cc2..1dcf5adc534fd7c4bd00f6668472d7ff860cf679 100644
(file)
--- 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;
}