summaryrefslogtreecommitdiff
path: root/source4/dsdb/samdb/samdb.c
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2010-10-10 23:45:23 +0200
committerJelmer Vernooij <jelmer@samba.org>2010-10-10 23:45:23 +0200
commite2f3e10b1a47e195e9b329ac244be93c2fcdf0a0 (patch)
tree88549fc4df55870e274155a2074acd688339ee9f /source4/dsdb/samdb/samdb.c
parent33c4b85058f21ab9865bc7cf1b49b7bd38e0275d (diff)
downloadsamba-e2f3e10b1a47e195e9b329ac244be93c2fcdf0a0.tar.gz
samba-e2f3e10b1a47e195e9b329ac244be93c2fcdf0a0.tar.bz2
samba-e2f3e10b1a47e195e9b329ac244be93c2fcdf0a0.zip
ldb-samba: Rename samdb_relative_path to ldb_relative_path, as it's not samdb-specific.
Diffstat (limited to 'source4/dsdb/samdb/samdb.c')
-rw-r--r--source4/dsdb/samdb/samdb.c27
1 files changed, 0 insertions, 27 deletions
diff --git a/source4/dsdb/samdb/samdb.c b/source4/dsdb/samdb/samdb.c
index c2a1e9ec80..57de27a22e 100644
--- a/source4/dsdb/samdb/samdb.c
+++ b/source4/dsdb/samdb/samdb.c
@@ -43,33 +43,6 @@
#include "param/secrets.h"
#include "auth/auth.h"
-char *samdb_relative_path(struct ldb_context *ldb,
- TALLOC_CTX *mem_ctx,
- const char *name)
-{
- const char *base_url =
- (const char *)ldb_get_opaque(ldb, "ldb_url");
- char *path, *p, *full_name;
- if (name == NULL) {
- return NULL;
- }
- if (strncmp("tdb://", base_url, 6) == 0) {
- base_url = base_url+6;
- }
- path = talloc_strdup(mem_ctx, base_url);
- if (path == NULL) {
- return NULL;
- }
- if ( (p = strrchr(path, '/')) != NULL) {
- p[0] = '\0';
- full_name = talloc_asprintf(mem_ctx, "%s/%s", path, name);
- } else {
- full_name = talloc_asprintf(mem_ctx, "./%s", name);
- }
- talloc_free(path);
- return full_name;
-}
-
/*
make sure the static credentials are not freed
*/