summaryrefslogtreecommitdiff
path: root/source3/passdb/secrets.c
diff options
context:
space:
mode:
authorVolker Lendecke <vlendec@samba.org>2007-03-13 20:53:38 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:18:37 -0500
commitf56da0890f645c4cecac7c60f67573e1f609fd4f (patch)
tree3f2d16fa4ba72b513420a3ab5f05e449f7d7d4b4 /source3/passdb/secrets.c
parent93128b863bb10aeca6202f4d5ba7935e31cf5c5f (diff)
downloadsamba-f56da0890f645c4cecac7c60f67573e1f609fd4f.tar.gz
samba-f56da0890f645c4cecac7c60f67573e1f609fd4f.tar.bz2
samba-f56da0890f645c4cecac7c60f67573e1f609fd4f.zip
r21831: Back out r21823 for a while, this is going into a bzr tree first.
Volker (This used to be commit fd0ee6722ddfcb64b5cc9c699375524ae3d8709b)
Diffstat (limited to 'source3/passdb/secrets.c')
-rw-r--r--source3/passdb/secrets.c21
1 files changed, 1 insertions, 20 deletions
diff --git a/source3/passdb/secrets.c b/source3/passdb/secrets.c
index 21a55b09a0..15c79745a0 100644
--- a/source3/passdb/secrets.c
+++ b/source3/passdb/secrets.c
@@ -553,10 +553,7 @@ BOOL secrets_store_trusted_domain_password(const char* domain, const char* pwd,
the password is assumed to be a null terminated ascii string
************************************************************************/
-BOOL secrets_store_machine_password(const char *pass,
- const char *accountname,
- const char *domain,
- uint32 sec_channel)
+BOOL secrets_store_machine_password(const char *pass, const char *domain, uint32 sec_channel)
{
char *key = NULL;
BOOL ret = False;
@@ -584,22 +581,6 @@ BOOL secrets_store_machine_password(const char *pass,
goto fail;
}
- if (asprintf(&key, "%s/%s", SECRETS_MACHINE_ACCOUNTNAME,
- domain) == -1) {
- DEBUG(5, ("asprintf failed\n"));
- goto fail;
- }
- strupper_m(key);
-
- ret = secrets_store(key, accountname, strlen(accountname)+1);
- SAFE_FREE(key);
-
- if (!ret) {
- DEBUG(5, ("secrets_store failed: %s\n",
- tdb_errorstr(tdb)));
- goto fail;
- }
-
if (asprintf(&key, "%s/%s", SECRETS_MACHINE_LAST_CHANGE_TIME,
domain) == -1) {
DEBUG(5, ("asprintf failed\n"));