summaryrefslogtreecommitdiff
path: root/source3/include
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
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')
-rw-r--r--source3/include/includes.h3
-rw-r--r--source3/include/secrets.h16
2 files changed, 17 insertions, 2 deletions
diff --git a/source3/include/includes.h b/source3/include/includes.h
index 2037b5ae05..51fc0d153b 100644
--- a/source3/include/includes.h
+++ b/source3/include/includes.h
@@ -699,7 +699,6 @@ extern int errno;
#include "hash.h"
#include "trans2.h"
#include "nterr.h"
-#include "secrets.h"
#include "messages.h"
#include "util_list.h"
#include "charset.h"
@@ -718,6 +717,8 @@ extern int errno;
#include "smbw.h"
#include "nameserv.h"
+#include "secrets.h"
+
#include "byteorder.h"
#include "ntdomain.h"
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 */