summaryrefslogtreecommitdiff
path: root/source3/torture/pdbtest.c
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2009-07-13 23:53:49 +0200
committerGünther Deschner <gd@samba.org>2009-07-14 12:12:18 +0200
commit9f15ef11bdf75dbc1a1af3c2bc35b1d653216f62 (patch)
tree600d736069915ef79e6acc698204ae05a1fdbda9 /source3/torture/pdbtest.c
parent39fa9468c6b8099429b971d75c0647033b60901c (diff)
downloadsamba-9f15ef11bdf75dbc1a1af3c2bc35b1d653216f62.tar.gz
samba-9f15ef11bdf75dbc1a1af3c2bc35b1d653216f62.tar.bz2
samba-9f15ef11bdf75dbc1a1af3c2bc35b1d653216f62.zip
s3-account_policy: add pdb_policy_type enum.
Guenther
Diffstat (limited to 'source3/torture/pdbtest.c')
-rw-r--r--source3/torture/pdbtest.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source3/torture/pdbtest.c b/source3/torture/pdbtest.c
index ab7edde85d..950177c3ca 100644
--- a/source3/torture/pdbtest.c
+++ b/source3/torture/pdbtest.c
@@ -288,7 +288,7 @@ int main(int argc, char **argv)
pdb_set_homedir(out, "\\\\torture\\home", PDB_SET);
pdb_set_logon_script(out, "torture_script.cmd", PDB_SET);
- pdb_get_account_policy(AP_PASSWORD_HISTORY, &history);
+ pdb_get_account_policy(PDB_POLICY_PASSWORD_HISTORY, &history);
if (history * PW_HISTORY_ENTRY_LEN < NT_HASH_LEN) {
buf = (uint8 *)TALLOC(ctx, NT_HASH_LEN);
} else {
@@ -311,8 +311,8 @@ int main(int argc, char **argv)
}
pdb_set_pw_history(out, buf, history, PDB_SET);
- pdb_get_account_policy(AP_MAX_PASSWORD_AGE, &expire);
- pdb_get_account_policy(AP_MIN_PASSWORD_AGE, &min_age);
+ pdb_get_account_policy(PDB_POLICY_MAX_PASSWORD_AGE, &expire);
+ pdb_get_account_policy(PDB_POLICY_MIN_PASSWORD_AGE, &min_age);
pdb_set_pass_last_set_time(out, time(NULL), PDB_SET);
if (expire == 0 || expire == (uint32)-1) {