summaryrefslogtreecommitdiffstats
path: root/source4/ldap_server/ldap_server.c
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2004-09-22 14:16:42 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:59:02 -0500
commit9a7c87bb645d908fab4527824376e328f4f3b0e0 (patch)
treebdd3287265792aba2953cee9204142fc59b01ccb /source4/ldap_server/ldap_server.c
parent0c7a18525cc662d4552e20796404a21ed9debcd5 (diff)
downloadsamba-9a7c87bb645d908fab4527824376e328f4f3b0e0.tar.gz
samba-9a7c87bb645d908fab4527824376e328f4f3b0e0.tar.xz
samba-9a7c87bb645d908fab4527824376e328f4f3b0e0.zip
r2527: - add a dummy for a simple ldb backend
- handle the complete rootDSE search (maybe this will be also a partition module) metze (This used to be commit 6fc904a71cf5305d0c5c260ad1665499ea6c6f9a)
Diffstat (limited to 'source4/ldap_server/ldap_server.c')
-rw-r--r--source4/ldap_server/ldap_server.c12
1 files changed, 5 insertions, 7 deletions
diff --git a/source4/ldap_server/ldap_server.c b/source4/ldap_server/ldap_server.c
index 1db6c4f8fbc..31376a7db22 100644
--- a/source4/ldap_server/ldap_server.c
+++ b/source4/ldap_server/ldap_server.c
@@ -198,10 +198,9 @@ void ldapsrv_queue_reply(struct ldapsrv_call *call, struct ldapsrv_reply *reply)
struct ldapsrv_partition *ldapsrv_get_partition(struct ldapsrv_connection *conn, const char *dn)
{
- static const struct ldapsrv_partition_ops null_ops;
- static struct ldapsrv_partition null_part = {
- .ops = &null_ops
- };
+ static struct ldapsrv_partition null_part;
+
+ null_part.ops = ldapsrv_get_sldb_partition_ops();
return &null_part;
}
@@ -270,11 +269,10 @@ static void ldapsrv_SearchRequest(struct ldapsrv_call *call)
DEBUGADD(10, (" basedn: %s", req->basedn));
DEBUGADD(10, (" filter: %s\n", req->filter));
- if ((strcasecmp("", req->basedn) == 0) &&
- (req->scope == LDAP_SEARCH_SCOPE_BASE)) {
+ if (strcasecmp("", req->basedn) == 0) {
ldapsrv_RootDSE_Search(call, req);
return;
- }
+ }
part = ldapsrv_get_partition(call->conn, req->basedn);