summaryrefslogtreecommitdiff
path: root/source3/passdb/secrets.c
diff options
context:
space:
mode:
Diffstat (limited to 'source3/passdb/secrets.c')
-rw-r--r--source3/passdb/secrets.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/source3/passdb/secrets.c b/source3/passdb/secrets.c
index 29e0662396..01919b76ef 100644
--- a/source3/passdb/secrets.c
+++ b/source3/passdb/secrets.c
@@ -1211,6 +1211,22 @@ bool secrets_store_generic(const char *owner, const char *key, const char *secre
return ret;
}
+bool secrets_delete_generic(const char *owner, const char *key)
+{
+ char *tdbkey = NULL;
+ bool ret;
+
+ if (asprintf(&tdbkey, "SECRETS/GENERIC/%s/%s", owner, key) < 0) {
+ DEBUG(0, ("asprintf failed!\n"));
+ return False;
+ }
+
+ ret = secrets_delete(tdbkey);
+
+ SAFE_FREE(tdbkey);
+ return ret;
+}
+
/*******************************************************************
Find the ldap password.
******************************************************************/