diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2005-08-24 16:39:28 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:34:32 -0500 |
commit | cdf218e270bb6e0e3e04419279292c80ed39fb98 (patch) | |
tree | b68c8122feb58ff86f7167786a1afc330692387a /source4/lib/samba3/samba3.h | |
parent | b873c1789faf4413dcd30e934135ce3517510408 (diff) | |
download | samba-cdf218e270bb6e0e3e04419279292c80ed39fb98.tar.gz samba-cdf218e270bb6e0e3e04419279292c80ed39fb98.tar.bz2 samba-cdf218e270bb6e0e3e04419279292c80ed39fb98.zip |
r9589: Support reading secrets tdb
(This used to be commit dd15131b5219ecf0d09329c0de37c426b9147f45)
Diffstat (limited to 'source4/lib/samba3/samba3.h')
-rw-r--r-- | source4/lib/samba3/samba3.h | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/source4/lib/samba3/samba3.h b/source4/lib/samba3/samba3.h index bebd120704..575ee83825 100644 --- a/source4/lib/samba3/samba3.h +++ b/source4/lib/samba3/samba3.h @@ -137,6 +137,53 @@ struct samba3_regdb struct samba3_regkey *keys; }; +struct samba3_secrets +{ + struct cli_credentials *ipc_cred; + + uint32_t ldappw_count; + struct samba3_ldappw + { + char *dn; + char *password; + } *ldappws; + + uint32_t domain_count; + struct samba3_domainsecrets + { + char *name; + struct dom_sid sid; + struct GUID guid; + char *plaintext_pw; + time_t last_change_time; + struct { + uint8_t hash[16]; + time_t mod_time; + } hash_pw;; + int sec_channel_type; + } *domains; + + uint32_t trusted_domain_count; + struct samba3_trusted_dom_pass { + uint32_t uni_name_len; + const char *uni_name[32]; /* unicode domain name */ + const char *pass; /* trust relationship's password */ + time_t mod_time; + struct dom_sid domain_sid; /* remote domain's sid */ + } *trusted_domains; + + uint32_t afs_keyfile_count; + + struct samba3_afs_keyfile { + uint32_t nkeys; + struct { + uint32_t kvno; + char key[8]; + } entry[8]; + char *cell; + } *afs_keyfiles; +}; + struct samba3 { uint32_t winsdb_count; @@ -145,6 +192,7 @@ struct samba3 uint32_t samaccount_count; struct samba3_samaccount *samaccounts; + struct samba3_secrets secrets; struct samba3_groupdb group; struct samba3_idmapdb idmap; struct samba3_policy policy; |