From 4788fe392427901f6b1c505e3a743136ac8a91ca Mon Sep 17 00:00:00 2001 From: Michael Adam Date: Mon, 10 Dec 2007 23:53:55 +0100 Subject: [PATCH] Remove two unneeded functions. secrets_store_trust_account_password() and trust_password_delete() are the write access functions to the SECRETS/$MACHINE.ACC/domain keys in secrets.tdb, the md4 hashed machine passwords. These are not used any more: Current code always writes the clear text password. Michael --- source/passdb/secrets.c | 23 ----------------------- 1 file changed, 23 deletions(-) diff --git a/source/passdb/secrets.c b/source/passdb/secrets.c index a4cb76602a8..3466f24533c 100644 --- a/source/passdb/secrets.c +++ b/source/passdb/secrets.c @@ -558,20 +558,6 @@ bool secrets_fetch_trusted_domain_password(const char *domain, char** pwd, return True; } -/************************************************************************ - Routine to set the trust account password for a domain. -************************************************************************/ - -bool secrets_store_trust_account_password(const char *domain, uint8 new_pwd[16]) -{ - struct machine_acct_pass pass; - - pass.mod_time = time(NULL); - memcpy(pass.hash, new_pwd, 16); - - return secrets_store(trust_keystr(domain), (void *)&pass, sizeof(pass)); -} - /** * Routine to store the password for trusted domain * @@ -721,15 +707,6 @@ char *secrets_fetch_machine_password(const char *domain, return ret; } -/************************************************************************ - Routine to delete the machine trust account password file for a domain. -************************************************************************/ - -bool trust_password_delete(const char *domain) -{ - return secrets_delete(trust_keystr(domain)); -} - /************************************************************************ Routine to delete the password for trusted domain ************************************************************************/ -- 2.34.1