]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3:passdb: Remove unused function secrets_fetch_trust_account_password()
authorPavel Filipenský <pfilipensky@samba.org>
Fri, 5 Aug 2022 22:35:22 +0000 (00:35 +0200)
committerJeremy Allison <jra@samba.org>
Mon, 8 Aug 2022 19:03:08 +0000 (19:03 +0000)
Signed-off-by: Pavel Filipenský <pfilipensky@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Mon Aug  8 19:03:08 UTC 2022 on sn-devel-184

source3/include/secrets.h
source3/passdb/machine_account_secrets.c

index 768fd1014dcde6d93cbba37d2f365f23b6d7ef00..47cf40432f0c34d2052726eaa4bc9fde21a80306 100644 (file)
@@ -110,9 +110,6 @@ bool secrets_fetch_trust_account_password_legacy(const char *domain,
                                                 uint8_t ret_pwd[16],
                                                 time_t *pass_last_set_time,
                                                 enum netr_SchannelType *channel);
-bool secrets_fetch_trust_account_password(const char *domain, uint8_t ret_pwd[16],
-                                         time_t *pass_last_set_time,
-                                         enum netr_SchannelType *channel);
 bool secrets_fetch_trusted_domain_password(const char *domain, char** pwd,
                                            struct dom_sid  *sid, time_t *pass_last_set_time);
 bool secrets_store_trusted_domain_password(const char* domain, const char* pwd,
index d404298502e17d3fce9dc08d723a7b7cc464aaef..5353cca93159536fce563584672d0aea9e9a1aca 100644 (file)
@@ -362,32 +362,6 @@ bool secrets_fetch_trust_account_password_legacy(const char *domain,
        return True;
 }
 
-/************************************************************************
- Routine to get the trust account password for a domain.
- The user of this function must have locked the trust password file using
- the above secrets_lock_trust_account_password().
-************************************************************************/
-
-bool secrets_fetch_trust_account_password(const char *domain, uint8_t ret_pwd[16],
-                                         time_t *pass_last_set_time,
-                                         enum netr_SchannelType *channel)
-{
-       char *plaintext;
-
-       plaintext = secrets_fetch_machine_password(domain, pass_last_set_time,
-                                                  channel);
-       if (plaintext) {
-               DEBUG(4,("Using cleartext machine password\n"));
-               E_md4hash(plaintext, ret_pwd);
-               SAFE_FREE(plaintext);
-               return True;
-       }
-
-       return secrets_fetch_trust_account_password_legacy(domain, ret_pwd,
-                                                          pass_last_set_time,
-                                                          channel);
-}
-
 /************************************************************************
  Routine to delete all information related to the domain joined machine.
 ************************************************************************/