summaryrefslogtreecommitdiff
path: root/source3/include/secrets.h
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2002-03-01 02:56:35 +0000
committerAndrew Bartlett <abartlet@samba.org>2002-03-01 02:56:35 +0000
commit75de5a5dfa4ccd2f46e9f1bddad7ca2d0d2e665e (patch)
tree588e4931fbe645f6717c4d1ecb6da83f37ad9784 /source3/include/secrets.h
parentcd76214b15246553284ca43441780d49cf2f5819 (diff)
downloadsamba-75de5a5dfa4ccd2f46e9f1bddad7ca2d0d2e665e.tar.gz
samba-75de5a5dfa4ccd2f46e9f1bddad7ca2d0d2e665e.tar.bz2
samba-75de5a5dfa4ccd2f46e9f1bddad7ca2d0d2e665e.zip
The beginning of trusted and trusting domain support from
Rafal Szczesniak <mimir@diament.ists.pwr.wroc.pl> This adds the 'net' tools to manipulate the trusted domains. Andrew Bartlett (This used to be commit 770c8a31d9804d3339ffa0de8b5072a5c7eb02df)
Diffstat (limited to 'source3/include/secrets.h')
-rw-r--r--source3/include/secrets.h16
1 files changed, 15 insertions, 1 deletions
diff --git a/source3/include/secrets.h b/source3/include/secrets.h
index 53d9c8ab88..2ab8d1168f 100644
--- a/source3/include/secrets.h
+++ b/source3/include/secrets.h
@@ -22,18 +22,32 @@
#define _SECRETS_H
/* the first one is for the hashed password (NT4 style) the latter
- for plaintext (ADS
+ for plaintext (ADS)
*/
#define SECRETS_MACHINE_ACCT_PASS "SECRETS/$MACHINE.ACC"
#define SECRETS_MACHINE_PASSWORD "SECRETS/MACHINE_PASSWORD"
+/* this one is for storing trusted domain account password */
+#define SECRETS_DOMTRUST_ACCT_PASS "SECRETS/$DOMTRUST.ACC"
+
#define SECRETS_DOMAIN_SID "SECRETS/SID"
#define SECRETS_SAM_SID "SAM/SID"
+/* structure for storing machine account password
+ (ie. when samba server is member of a domain */
struct machine_acct_pass {
uint8 hash[16];
time_t mod_time;
};
+/* structure for storing trusted domain password */
+struct trusted_dom_pass {
+ int pass_len;
+ char* pass;
+ time_t mod_time;
+ DOM_SID domain_sid; /* remote domain's sid */
+};
+
+
#endif /* _SECRETS_H */