summaryrefslogtreecommitdiff
path: root/source3/passdb/secrets.c
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2006-02-17 21:32:31 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 11:10:13 -0500
commit952a631d5de34bd7bf938b0c1349126a0243a3d0 (patch)
tree67b7ec11e17a1c9f10188ba1a31436acb80ebad2 /source3/passdb/secrets.c
parentb2ae6e08daee619936f2858eafb31b3a8d8ecfcb (diff)
downloadsamba-952a631d5de34bd7bf938b0c1349126a0243a3d0.tar.gz
samba-952a631d5de34bd7bf938b0c1349126a0243a3d0.tar.bz2
samba-952a631d5de34bd7bf938b0c1349126a0243a3d0.zip
r13548: Always use the get_remote_macinhe_name() as the key
for the creds store. This should fix the problems Jerry reported (but I have still to run tests :-). Jeremy. (This used to be commit 43f095a38d66caa774d80fe32e1b96ec25dd1f07)
Diffstat (limited to 'source3/passdb/secrets.c')
-rw-r--r--source3/passdb/secrets.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/source3/passdb/secrets.c b/source3/passdb/secrets.c
index 55fb0cfc0e..ece17cc718 100644
--- a/source3/passdb/secrets.c
+++ b/source3/passdb/secrets.c
@@ -930,13 +930,15 @@ static TDB_CONTEXT *open_schannel_session_store(TALLOC_CTX *mem_ctx)
Note we must be root here.
*******************************************************************************/
-BOOL secrets_store_schannel_session_info(TALLOC_CTX *mem_ctx, const struct dcinfo *pdc)
+BOOL secrets_store_schannel_session_info(TALLOC_CTX *mem_ctx,
+ const char *remote_machine,
+ const struct dcinfo *pdc)
{
TDB_CONTEXT *tdb_sc = NULL;
TDB_DATA value;
BOOL ret;
char *keystr = talloc_asprintf(mem_ctx, "%s/%s", SECRETS_SCHANNEL_STATE,
- pdc->remote_machine);
+ remote_machine);
if (!keystr) {
return False;
}