diff options
author | Volker Lendecke <vlendec@samba.org> | 2006-09-09 22:27:06 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 11:51:19 -0500 |
commit | 716f7245d99d17b7b3e6bda05dc2edf7334463a5 (patch) | |
tree | bffe40d4b062e12f395aee13bd20e4049b1e4b96 /source3/passdb | |
parent | eab60e2bb13e0197f3771ab6d60da48a72fb311d (diff) | |
download | samba-716f7245d99d17b7b3e6bda05dc2edf7334463a5.tar.gz samba-716f7245d99d17b7b3e6bda05dc2edf7334463a5.tar.bz2 samba-716f7245d99d17b7b3e6bda05dc2edf7334463a5.zip |
r18313: Nobody said "no" (yet.... gd?), so commit it:
Remove the account_policy_migrated() thingy, and make cache_account_policy_set
use gencache. Account policies are now handled like groups and users are with
respect to "passdb backend".
Volker
(This used to be commit fa8b2e2a585ab0c00a5fbde7aa790043261caf2e)
Diffstat (limited to 'source3/passdb')
-rw-r--r-- | source3/passdb/pdb_ldap.c | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/source3/passdb/pdb_ldap.c b/source3/passdb/pdb_ldap.c index 865bcdfc9f..e0f79c140d 100644 --- a/source3/passdb/pdb_ldap.c +++ b/source3/passdb/pdb_ldap.c @@ -3495,11 +3495,6 @@ static NTSTATUS ldapsam_set_account_policy_in_ldap(struct pdb_methods *methods, static NTSTATUS ldapsam_set_account_policy(struct pdb_methods *methods, int policy_index, uint32 value) { - if (!account_policy_migrated(False)) { - return (account_policy_set(policy_index, value)) ? - NT_STATUS_OK : NT_STATUS_UNSUCCESSFUL; - } - return ldapsam_set_account_policy_in_ldap(methods, policy_index, value); } @@ -3588,11 +3583,6 @@ static NTSTATUS ldapsam_get_account_policy(struct pdb_methods *methods, { NTSTATUS ntstatus = NT_STATUS_UNSUCCESSFUL; - if (!account_policy_migrated(False)) { - return (account_policy_get(policy_index, value)) - ? NT_STATUS_OK : NT_STATUS_UNSUCCESSFUL; - } - if (cache_account_policy_get(policy_index, value)) { DEBUG(11,("ldapsam_get_account_policy: got valid value from " "cache\n")); |