ldb-samba: Handle generic ldb:// url scheme in ldb_relative_path()
authorGary Lockyer <gary@catalyst.net.nz>
Tue, 6 Mar 2018 00:40:21 +0000 (13:40 +1300)
committerAndrew Bartlett <abartlet@samba.org>
Thu, 3 May 2018 06:17:45 +0000 (08:17 +0200)
Signed-off-by: Gary Lockyer <gary@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
lib/ldb-samba/ldb_wrap.c

index 3d3eb8b..da383d2 100644 (file)
@@ -356,6 +356,8 @@ int samba_ldb_connect(struct ldb_context *ldb, struct loadparm_context *lp_ctx,
        }
        if (strncmp("tdb://", base_url, 6) == 0) {
                base_url = base_url+6;
+       } else if (strncmp("ldb://", base_url, 6) == 0) {
+               base_url = base_url+6;
        }
        path = talloc_strdup(mem_ctx, base_url);
        if (path == NULL) {