summaryrefslogtreecommitdiff
path: root/source3/include
diff options
context:
space:
mode:
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 */