summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Potter <tpot@samba.org>2003-01-14 05:08:42 +0000
committerTim Potter <tpot@samba.org>2003-01-14 05:08:42 +0000
commitd1a0cc342f1e10e1c4d5b0e3671c49f0b658e7cb (patch)
tree6f392d3af3a041ef2cd5e4475ff740b21f4d197d
parent4c617a3746f52db362344ece1cbcbcd16b252882 (diff)
downloadsamba-d1a0cc342f1e10e1c4d5b0e3671c49f0b658e7cb.tar.gz
samba-d1a0cc342f1e10e1c4d5b0e3671c49f0b658e7cb.tar.bz2
samba-d1a0cc342f1e10e1c4d5b0e3671c49f0b658e7cb.zip
Remove wrapper function _get_trust_account_password() as it doesn't
seem to do anything useful anymore other than call secrets_fetch_trust_account_password(). (This used to be commit 7b0c03cbf1376f82b0bb5f4cf86e2db3b0bc1dec)
-rw-r--r--source3/nsswitch/winbindd_misc.c17
1 files changed, 2 insertions, 15 deletions
diff --git a/source3/nsswitch/winbindd_misc.c b/source3/nsswitch/winbindd_misc.c
index 74748f1aed..6b7ef382dd 100644
--- a/source3/nsswitch/winbindd_misc.c
+++ b/source3/nsswitch/winbindd_misc.c
@@ -26,19 +26,6 @@
#undef DBGC_CLASS
#define DBGC_CLASS DBGC_WINBIND
-/************************************************************************
- Routine to get the trust account password for a domain
-************************************************************************/
-static BOOL _get_trust_account_password(const char *domain, unsigned char *ret_pwd,
- time_t *pass_last_set_time)
-{
- if (!secrets_fetch_trust_account_password(domain, ret_pwd, pass_last_set_time)) {
- return False;
- }
-
- return True;
-}
-
/* Check the machine account password is valid */
enum winbindd_result winbindd_check_machine_acct(struct winbindd_cli_state *state)
@@ -52,8 +39,8 @@ enum winbindd_result winbindd_check_machine_acct(struct winbindd_cli_state *stat
/* Get trust account password */
again:
- if (!_get_trust_account_password(lp_workgroup(), trust_passwd,
- NULL)) {
+ if (!secrets_fetch_trust_account_password(
+ lp_workgroup(), trust_passwd, NULL)) {
result = NT_STATUS_INTERNAL_ERROR;
goto done;
}