summaryrefslogtreecommitdiff
path: root/source/passdb/pdb_get_set.c
diff options
context:
space:
mode:
Diffstat (limited to 'source/passdb/pdb_get_set.c')
-rw-r--r--source/passdb/pdb_get_set.c19
1 files changed, 18 insertions, 1 deletions
diff --git a/source/passdb/pdb_get_set.c b/source/passdb/pdb_get_set.c
index 908588c8988..e69dac524f0 100644
--- a/source/passdb/pdb_get_set.c
+++ b/source/passdb/pdb_get_set.c
@@ -314,6 +314,14 @@ const char* pdb_get_munged_dial (const SAM_ACCOUNT *sampass)
return (NULL);
}
+uint32 pdb_get_fields_present (const SAM_ACCOUNT *sampass)
+{
+ if (sampass)
+ return (sampass->private.fields_present);
+ else
+ return (-1);
+}
+
uint16 pdb_get_bad_password_count(const SAM_ACCOUNT *sampass)
{
if (sampass)
@@ -1001,6 +1009,16 @@ 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_fields_present (SAM_ACCOUNT *sampass, uint32 fields_present, enum pdb_value_state flag)
+{
+ if (!sampass)
+ return False;
+
+ sampass->private.fields_present = fields_present;
+
+ 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)
{
if (!sampass)
@@ -1155,4 +1173,3 @@ uint32 pdb_build_fields_present (SAM_ACCOUNT *sampass)
/* value set to all for testing */
return 0x00ffffff;
}
-