summaryrefslogtreecommitdiff
path: root/source3/include
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2012-08-27 19:28:22 +1000
committerAndrew Bartlett <abartlet@samba.org>2012-08-28 07:57:29 +1000
commit708ce41b32881e5a45c38929be66f9a1392dda8a (patch)
tree38137ff8707f34fb3d217679259205f38483fc31 /source3/include
parent62373b8a509fb874728c351e8039f94e3a1dd6db (diff)
downloadsamba-708ce41b32881e5a45c38929be66f9a1392dda8a.tar.gz
samba-708ce41b32881e5a45c38929be66f9a1392dda8a.tar.bz2
samba-708ce41b32881e5a45c38929be66f9a1392dda8a.zip
s3-secrets: Add helper function to set machine account password from secrets_tdb_sync
secrets_tdb_sync will be a new ldb module designed to sync secrets.ldb entries with the secrets.tdb file. While not ideal to keep two copies of this data, this routine will assist in allowing the samba-tool domain join code to operate correctly in most cases where winbindd and smbd are used. Andrew Bartlett
Diffstat (limited to 'source3/include')
-rw-r--r--source3/include/secrets.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/source3/include/secrets.h b/source3/include/secrets.h
index fa215fff8d..57a1be0c3e 100644
--- a/source3/include/secrets.h
+++ b/source3/include/secrets.h
@@ -126,6 +126,12 @@ void secrets_fetch_ipc_userpass(char **username, char **domain, char **password)
bool secrets_store_generic(const char *owner, const char *key, const char *secret);
char *secrets_fetch_generic(const char *owner, const char *key);
+bool secrets_store_machine_pw_sync(const char *pass, const char *oldpass, const char *domain,
+ const char *realm,
+ const char *salting_principal, uint32_t supported_enc_types,
+ const struct dom_sid *domain_sid, uint32_t last_change_time,
+ bool delete_join);
+
/* The following definitions come from passdb/secrets_lsa.c */
NTSTATUS lsa_secret_get(TALLOC_CTX *mem_ctx,
const char *secret_name,