summaryrefslogtreecommitdiff
path: root/source3/passdb
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2011-02-15 19:07:42 +0100
committerVolker Lendecke <vl@samba.org>2011-02-15 21:12:22 +0100
commitead7ffa1a7f3ab04c5430f9a0b4223172772d46d (patch)
tree09fb87d3d024e4e796f97074f151129ffea47249 /source3/passdb
parent8bbf0ad2a04ceabdbdf21bb157b3f0f3423cd43c (diff)
downloadsamba-ead7ffa1a7f3ab04c5430f9a0b4223172772d46d.tar.gz
samba-ead7ffa1a7f3ab04c5430f9a0b4223172772d46d.tar.bz2
samba-ead7ffa1a7f3ab04c5430f9a0b4223172772d46d.zip
s3: Add "code_page" to struct samu
Diffstat (limited to 'source3/passdb')
-rw-r--r--source3/passdb/pdb_get_set.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/source3/passdb/pdb_get_set.c b/source3/passdb/pdb_get_set.c
index 950b1942f2..07a63e24e6 100644
--- a/source3/passdb/pdb_get_set.c
+++ b/source3/passdb/pdb_get_set.c
@@ -310,6 +310,11 @@ uint16_t pdb_get_country_code(const struct samu *sampass)
return sampass->country_code;
}
+uint16_t pdb_get_code_page(const struct samu *sampass)
+{
+ return sampass->code_page;
+}
+
uint32_t pdb_get_unknown_6(const struct samu *sampass)
{
return sampass->unknown_6;
@@ -900,6 +905,13 @@ bool pdb_set_country_code(struct samu *sampass, uint16_t country_code,
return pdb_set_init_flags(sampass, PDB_COUNTRY_CODE, flag);
}
+bool pdb_set_code_page(struct samu *sampass, uint16_t code_page,
+ enum pdb_value_state flag)
+{
+ sampass->code_page = code_page;
+ return pdb_set_init_flags(sampass, PDB_CODE_PAGE, flag);
+}
+
bool pdb_set_unknown_6(struct samu *sampass, uint32_t unkn, enum pdb_value_state flag)
{
sampass->unknown_6 = unkn;