diff options
author | Alexander Bokovoy <ab@samba.org> | 2012-09-05 15:56:37 +0300 |
---|---|---|
committer | Alexander Bokovoy <ab@samba.org> | 2012-09-07 12:31:42 +0200 |
commit | c2e2857db41ac96dbd6eca69b09a8e4b659997eb (patch) | |
tree | 1daf1b30a06919a651326544021587d797d61e37 /source3/include | |
parent | 9c3e294400234ebdf9b98031bae583524fd0b0ac (diff) | |
download | samba-c2e2857db41ac96dbd6eca69b09a8e4b659997eb.tar.gz |
s3-passdb: wrap secrets.tdb accessors used by PDB modules
PDB modules store domain sid and guid in secrets.tdb to cooperate
with other parts of smbd. If PDB module is built outside Samba
source code it has to be linked against internal libsecrets.
Wrap required secrets_* calls to avoid direct linking. libpdb
is linked against libsecrets by itself and this is enough.
Diffstat (limited to 'source3/include')
-rw-r--r-- | source3/include/passdb.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/source3/include/passdb.h b/source3/include/passdb.h index ec724bccfad..5202bd3af4f 100644 --- a/source3/include/passdb.h +++ b/source3/include/passdb.h @@ -922,4 +922,15 @@ void unixid_from_uid(struct unixid *id, uint32_t some_uid); void unixid_from_gid(struct unixid *id, uint32_t some_gid); void unixid_from_both(struct unixid *id, uint32_t some_id); +/* The following definitions come from passdb/pdb_secrets.c + * and should be used by PDB modules if they need to store + * sid/guid information for the domain in secrets database + */ +bool PDB_secrets_mark_domain_protected(const char *domain); +bool PDB_secrets_clear_domain_protection(const char *domain); +bool PDB_secrets_store_domain_sid(const char *domain, const struct dom_sid *sid); +bool PDB_secrets_fetch_domain_sid(const char *domain, struct dom_sid *sid); +bool PDB_secrets_store_domain_guid(const char *domain, struct GUID *guid); +bool PDB_secrets_fetch_domain_guid(const char *domain, struct GUID *guid); + #endif /* _PASSDB_H */ |