Remove two unneeded functions.
authorMichael Adam <obnox@samba.org>
Mon, 10 Dec 2007 22:53:55 +0000 (23:53 +0100)
committerMichael Adam <obnox@samba.org>
Thu, 13 Dec 2007 09:15:13 +0000 (10:15 +0100)
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)

source3/passdb/secrets.c

index a4cb76602a83cdcae2001be38a37538ab9c636f5..3466f24533c7da44d606e0996f82983488bd8c8b 100644 (file)
@@ -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
 ************************************************************************/