diff options
author | Andrew Tridgell <tridge@samba.org> | 2000-05-08 10:42:21 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2000-05-08 10:42:21 +0000 |
commit | 88ad00b82acc4636ab57dfe710af08ea85b82ff1 (patch) | |
tree | cd7a154b1e7e814870840c3a7c1255bb88ad0c72 /source/include | |
parent | 1d3bd3c486bf9f6b6c9d5f6207f591f465517e1e (diff) | |
download | samba-88ad00b82acc4636ab57dfe710af08ea85b82ff1.tar.gz samba-88ad00b82acc4636ab57dfe710af08ea85b82ff1.tar.xz samba-88ad00b82acc4636ab57dfe710af08ea85b82ff1.zip |
added secrets.tdb and changed storage of trust account password to use
it
Diffstat (limited to 'source/include')
-rw-r--r-- | source/include/includes.h | 1 | ||||
-rw-r--r-- | source/include/proto.h | 16 | ||||
-rw-r--r-- | source/include/secrets.h | 11 |
3 files changed, 22 insertions, 6 deletions
diff --git a/source/include/includes.h b/source/include/includes.h index bb5d8192cbf..68872f39f0d 100644 --- a/source/include/includes.h +++ b/source/include/includes.h @@ -611,6 +611,7 @@ extern int errno; #include "hash.h" #include "trans2.h" #include "nterr.h" +#include "secrets.h" #ifdef HAVE_FNMATCH #include <fnmatch.h> diff --git a/source/include/proto.h b/source/include/proto.h index 146775bd2a9..b19eb7e6628 100644 --- a/source/include/proto.h +++ b/source/include/proto.h @@ -1561,6 +1561,13 @@ BOOL pdb_rid_is_user(uint32 rid); BOOL lookup_local_rid(uint32 rid, char *name, uint8 *psid_name_use); BOOL lookup_local_name(char *domain, char *user, DOM_SID *psid, uint8 *psid_name_use); +/*The following definitions come from passdb/secrets.c */ + +BOOL secrets_init(void); +void *secrets_fetch(char *key, size_t *size); +BOOL secrets_store(char *key, void *data, size_t size); +BOOL secrets_delete(char *key); + /*The following definitions come from passdb/smbpass.c */ char *format_new_smbpasswd_entry(struct smb_passwd *newpwd); @@ -1577,12 +1584,9 @@ BOOL local_password_change(char *user_name, int local_flags, BOOL pw_file_lock(int fd, int type, int secs, int *plock_depth); BOOL pw_file_unlock(int fd, int *plock_depth); -BOOL trust_password_lock( char *domain, char *name, BOOL update); -BOOL trust_password_unlock(void); -BOOL trust_password_delete( char *domain, char *name ); -BOOL get_trust_account_password( unsigned char *ret_pwd, time_t *pass_last_set_time); -BOOL set_trust_account_password( unsigned char *md4_new_pwd); -BOOL trust_get_passwd( unsigned char trust_passwd[16], char *domain, char *myname); +BOOL trust_password_delete(char *domain); +BOOL get_trust_account_password(char *domain, unsigned char *ret_pwd, time_t *pass_last_set_time); +BOOL set_trust_account_password(char *domain, unsigned char *md4_new_pwd); /*The following definitions come from printing/load.c */ diff --git a/source/include/secrets.h b/source/include/secrets.h new file mode 100644 index 00000000000..a87bdef56b7 --- /dev/null +++ b/source/include/secrets.h @@ -0,0 +1,11 @@ + + + +#define SECRETS_MACHINE_ACCT_PASS "SECRETS/$MACHINE.ACC" +#define SECRETS_SAM_SID "SAM/SAM_SID" + +struct machine_acct_pass { + uint8 hash[16]; + time_t mod_time; +}; + |