summaryrefslogtreecommitdiff
path: root/source3/passdb/machine_account_secrets.c
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2012-07-13 11:01:47 +1000
committerAndrew Bartlett <abartlet@samba.org>2012-07-13 07:52:40 +0200
commit15fedb3c6855751678e93e3f4a7e443b0495b1c3 (patch)
tree3b1fed92396445bce6912fc2b1d0e1be43d2ef70 /source3/passdb/machine_account_secrets.c
parentd55cde19d31484079d69182fcaa9dfa889fd7fed (diff)
downloadsamba-15fedb3c6855751678e93e3f4a7e443b0495b1c3.tar.gz
samba-15fedb3c6855751678e93e3f4a7e443b0495b1c3.tar.bz2
samba-15fedb3c6855751678e93e3f4a7e443b0495b1c3.zip
s3-auth Remove unused global_machine_account_needs_changing
This boolean was only set if the old machine account store (with an MD4 hash in it) was returned. We have not set that password type for years. If this call ever worked, it would store a plaintext password, so we could only ever be here if we had set a password using a version of Samba so old as not to store plaintext, and then never honered the flag anyway. Andrew Bartlett Autobuild-User(master): Andrew Bartlett <abartlet@samba.org> Autobuild-Date(master): Fri Jul 13 07:52:40 CEST 2012 on sn-devel-104
Diffstat (limited to 'source3/passdb/machine_account_secrets.c')
-rw-r--r--source3/passdb/machine_account_secrets.c11
1 files changed, 0 insertions, 11 deletions
diff --git a/source3/passdb/machine_account_secrets.c b/source3/passdb/machine_account_secrets.c
index 8aaea10d8c..463de714c1 100644
--- a/source3/passdb/machine_account_secrets.c
+++ b/source3/passdb/machine_account_secrets.c
@@ -33,9 +33,6 @@
#undef DBGC_CLASS
#define DBGC_CLASS DBGC_PASSDB
-/* Urrrg. global.... */
-bool global_machine_password_needs_changing;
-
/**
* Form a key for fetching the domain sid
*
@@ -344,14 +341,6 @@ bool secrets_fetch_trust_account_password_legacy(const char *domain,
*channel = get_default_sec_channel();
}
- /* Test if machine password has expired and needs to be changed */
- if (lp_machine_password_timeout()) {
- if (pass->mod_time > 0 && time(NULL) > (pass->mod_time +
- (time_t)lp_machine_password_timeout())) {
- global_machine_password_needs_changing = True;
- }
- }
-
SAFE_FREE(pass);
return True;
}