mirror of
https://github.com/samba-team/samba.git
synced 2024-12-23 17:34:34 +03:00
ldb-samba: Handle generic ldb:// url scheme in ldb_relative_path()
Signed-off-by: Gary Lockyer <gary@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
This commit is contained in:
parent
1bff2ae128
commit
c25cec834c
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user