summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2007-12-10 23:53:55 +0100
committerMichael Adam <obnox@samba.org>2007-12-13 10:15:13 +0100
commitb99a6b0e8c3ca57666c16a9228337338033df1c1 (patch)
treed61d3e1beb9889e669524dbe09767bed401d0233 /source3
parent951466000c05cd9824c3a6361be707bf55a23550 (diff)
downloadsamba-b99a6b0e8c3ca57666c16a9228337338033df1c1.tar.gz
samba-b99a6b0e8c3ca57666c16a9228337338033df1c1.tar.bz2
samba-b99a6b0e8c3ca57666c16a9228337338033df1c1.zip
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 (This used to be commit 4788fe392427901f6b1c505e3a743136ac8a91ca)
Diffstat (limited to 'source3')
-rw-r--r--source3/passdb/secrets.c23
1 files changed, 0 insertions, 23 deletions
diff --git a/source3/passdb/secrets.c b/source3/passdb/secrets.c
index a4cb76602a..3466f24533 100644
--- a/source3/passdb/secrets.c
+++ b/source3/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
*
@@ -722,15 +708,6 @@ char *secrets_fetch_machine_password(const char *domain,
}
/************************************************************************
- 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
************************************************************************/