summaryrefslogtreecommitdiffstats
path: root/source/passdb/pdb_get_set.c
diff options
context:
space:
mode:
authorJim McDonough <jmcd@samba.org>2004-02-12 16:16:53 +0000
committerJim McDonough <jmcd@samba.org>2004-02-12 16:16:53 +0000
commit1976843345efb6ca4f9cebd964a61acd8ae11d41 (patch)
tree19fbcd96ddc885e33d7db30e0fd7440616af64c4 /source/passdb/pdb_get_set.c
parent7b40f6c464ecbd40ab3fdf32b53da1e61475d2e7 (diff)
downloadsamba-1976843345efb6ca4f9cebd964a61acd8ae11d41.tar.gz
samba-1976843345efb6ca4f9cebd964a61acd8ae11d41.tar.xz
samba-1976843345efb6ca4f9cebd964a61acd8ae11d41.zip
More sync between passdb on 3.0 and HEAD.
Replace unknown_3 with fields_present. Also causes rpc_samr structure field changes.
Diffstat (limited to 'source/passdb/pdb_get_set.c')
-rw-r--r--source/passdb/pdb_get_set.c17
1 files changed, 12 insertions, 5 deletions
diff --git a/source/passdb/pdb_get_set.c b/source/passdb/pdb_get_set.c
index 935b75cf756..2d6b065cbd4 100644
--- a/source/passdb/pdb_get_set.c
+++ b/source/passdb/pdb_get_set.c
@@ -306,10 +306,10 @@ const char* pdb_get_munged_dial (const SAM_ACCOUNT *sampass)
return (NULL);
}
-uint32 pdb_get_unknown_3 (const SAM_ACCOUNT *sampass)
+uint32 pdb_get_fields_present (const SAM_ACCOUNT *sampass)
{
if (sampass)
- return (sampass->private.unknown_3);
+ return (sampass->private.fields_present);
else
return (-1);
}
@@ -990,14 +990,14 @@ BOOL pdb_set_plaintext_pw_only (SAM_ACCOUNT *sampass, const char *password, enum
return pdb_set_init_flags(sampass, PDB_PLAINTEXT_PW, flag);
}
-BOOL pdb_set_unknown_3 (SAM_ACCOUNT *sampass, uint32 unkn, enum pdb_value_state flag)
+BOOL pdb_set_fields_present (SAM_ACCOUNT *sampass, uint32 fields_present, enum pdb_value_state flag)
{
if (!sampass)
return False;
- sampass->private.unknown_3 = unkn;
+ sampass->private.fields_present = fields_present;
- return pdb_set_init_flags(sampass, PDB_UNKNOWN3, flag);
+ return pdb_set_init_flags(sampass, PDB_FIELDS_PRESENT, flag);
}
BOOL pdb_set_bad_password_count(SAM_ACCOUNT *sampass, uint16 bad_password_count, enum pdb_value_state flag)
@@ -1147,3 +1147,10 @@ BOOL pdb_set_plaintext_passwd (SAM_ACCOUNT *sampass, const char *plaintext)
return True;
}
+
+/* check for any PDB_SET/CHANGED field and fill the appropriate mask bit */
+uint32 pdb_build_fields_present (SAM_ACCOUNT *sampass)
+{
+ /* value set to all for testing */
+ return 0x00ffffff;
+}