bool secrets_store_domain_sid(const char *domain, const struct dom_sid *sid)
{
-#if _SAMBA_BUILD_ == 4
char *protect_ids;
-#endif
bool ret;
-#if _SAMBA_BUILD_ == 4
protect_ids = secrets_fetch(protect_ids_keystr(domain), NULL);
if (protect_ids) {
if (strncmp(protect_ids, "TRUE", 4)) {
}
}
SAFE_FREE(protect_ids);
-#endif
ret = secrets_store(domain_sid_keystr(domain), sid, sizeof(struct dom_sid ));
bool secrets_store_domain_guid(const char *domain, struct GUID *guid)
{
-#if _SAMBA_BUILD_ == 4
char *protect_ids;
-#endif
fstring key;
-#if _SAMBA_BUILD_ == 4
protect_ids = secrets_fetch(protect_ids_keystr(domain), NULL);
if (protect_ids) {
if (strncmp(protect_ids, "TRUE", 4)) {
}
}
SAFE_FREE(protect_ids);
-#endif
slprintf(key, sizeof(key)-1, "%s/%s", SECRETS_DOMAIN_GUID, domain);
if (!strupper_m(key)) {
static NTSTATUS pdb_ipa_init_secrets(struct pdb_methods *m)
{
-#if _SAMBA_BUILD_ == 4
struct pdb_domain_info *dom_info;
bool ret;
if (!ret) {
return NT_STATUS_UNSUCCESSFUL;
}
-#endif
return NT_STATUS_OK;
}