summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2002-03-10 01:43:04 +0000
committerAndrew Tridgell <tridge@samba.org>2002-03-10 01:43:04 +0000
commite7d5f890f553a7b92d08e72f0689e69edd6daf05 (patch)
treefc32c13817adecb20aee4faafcdff41cec69ba8c /source3
parent391db465c6df87852f67dcc5daff55e5719196df (diff)
downloadsamba-e7d5f890f553a7b92d08e72f0689e69edd6daf05.tar.gz
samba-e7d5f890f553a7b92d08e72f0689e69edd6daf05.tar.bz2
samba-e7d5f890f553a7b92d08e72f0689e69edd6daf05.zip
make sure we use consistent keys in secrets.tdb by uppercasing domain
names (This used to be commit 4cb7b6954b96e6964743e65413e122f7b4d39052)
Diffstat (limited to 'source3')
-rw-r--r--source3/passdb/secrets.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/source3/passdb/secrets.c b/source3/passdb/secrets.c
index 5be6bee00e..b3507a1392 100644
--- a/source3/passdb/secrets.c
+++ b/source3/passdb/secrets.c
@@ -95,6 +95,7 @@ BOOL secrets_store_domain_sid(char *domain, DOM_SID *sid)
fstring key;
slprintf(key, sizeof(key)-1, "%s/%s", SECRETS_DOMAIN_SID, domain);
+ strupper(key);
return secrets_store(key, sid, sizeof(DOM_SID));
}
@@ -105,6 +106,7 @@ BOOL secrets_fetch_domain_sid(char *domain, DOM_SID *sid)
size_t size;
slprintf(key, sizeof(key)-1, "%s/%s", SECRETS_DOMAIN_SID, domain);
+ strupper(key);
dyn_sid = (DOM_SID *)secrets_fetch(key, &size);
if (dyn_sid == NULL)
@@ -131,6 +133,7 @@ char *trust_keystr(char *domain)
slprintf(keystr,sizeof(keystr)-1,"%s/%s",
SECRETS_MACHINE_ACCT_PASS, domain);
+ strupper(keystr);
return keystr;
}
@@ -147,6 +150,7 @@ char *trustdom_keystr(char *domain)
static char* keystr;
asprintf(&keystr, "%s/%s", SECRETS_DOMTRUST_ACCT_PASS, domain);
+ strupper(keystr);
return keystr;
}