summaryrefslogtreecommitdiff
path: root/source4/ldap_server/ldap_server.h
diff options
context:
space:
mode:
authorSimo Sorce <idra@samba.org>2006-01-13 00:38:35 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:50:57 -0500
commita7a79d2b256c97bd6ffa6e9740d14366ebc7602e (patch)
tree3b7b912a8ae86a8f0a523fad0f697d6516d30f70 /source4/ldap_server/ldap_server.h
parent0ac6b5232d1e52bab55227fc5251b363fd97b333 (diff)
downloadsamba-a7a79d2b256c97bd6ffa6e9740d14366ebc7602e.tar.gz
samba-a7a79d2b256c97bd6ffa6e9740d14366ebc7602e.tar.bz2
samba-a7a79d2b256c97bd6ffa6e9740d14366ebc7602e.zip
r12880: Remove ldap partitions useless now and probably we
will not use it anyway as we plan to support partitions in ldb directly like with rootdse Merge ldap_simple_ldb into ldap_backend, it is not simple anymore and makes no sense to have it separated now that ldap partitions are gone Initial attempt at working to some limit to avoid DOSs for the ldap server. Simo. (This used to be commit 97bff3e049eba48019f2b0f3eb5a19e32fef2e23)
Diffstat (limited to 'source4/ldap_server/ldap_server.h')
-rw-r--r--source4/ldap_server/ldap_server.h36
1 files changed, 10 insertions, 26 deletions
diff --git a/source4/ldap_server/ldap_server.h b/source4/ldap_server/ldap_server.h
index 267b6fb9a7..1341b22948 100644
--- a/source4/ldap_server/ldap_server.h
+++ b/source4/ldap_server/ldap_server.h
@@ -27,14 +27,22 @@ struct ldapsrv_connection {
struct auth_session_info *session_info;
struct ldapsrv_service *service;
struct tls_context *tls;
- struct ldapsrv_partition *default_partition;
- struct ldapsrv_partition *partitions;
struct cli_credentials *server_credentials;
+ struct ldb_context *ldb;
/* are we using gensec wrapping? */
BOOL enable_wrap;
struct packet_context *packet;
+
+ struct {
+ int initial_timeout;
+ int conn_idle_time;
+ int max_page_size;
+ int search_timeout;
+
+ struct timed_event *ite;
+ } limits;
};
struct ldapsrv_call {
@@ -47,30 +55,6 @@ struct ldapsrv_call {
};
struct ldapsrv_service;
-struct ldapsrv_partition;
-
-struct ldapsrv_partition_ops {
- const char *name;
- NTSTATUS (*Init)(struct ldapsrv_partition *partition, struct ldapsrv_connection *conn);
- NTSTATUS (*Bind)(struct ldapsrv_partition *partition, struct ldapsrv_connection *conn);
- NTSTATUS (*Search)(struct ldapsrv_partition *partition, struct ldapsrv_call *call);
- NTSTATUS (*Modify)(struct ldapsrv_partition *partition, struct ldapsrv_call *call);
- NTSTATUS (*Add)(struct ldapsrv_partition *partition, struct ldapsrv_call *call);
- NTSTATUS (*Del)(struct ldapsrv_partition *partition, struct ldapsrv_call *call);
- NTSTATUS (*ModifyDN)(struct ldapsrv_partition *partition, struct ldapsrv_call *call);
- NTSTATUS (*Compare)(struct ldapsrv_partition *partition, struct ldapsrv_call *call);
- NTSTATUS (*Abandon)(struct ldapsrv_partition *partition, struct ldapsrv_call *call);
- NTSTATUS (*Extended)(struct ldapsrv_partition *partition, struct ldapsrv_call *call);
-};
-
-struct ldapsrv_partition {
- struct ldapsrv_partition *prev,*next;
-
- void *private;
- const struct ldapsrv_partition_ops *ops;
-
- const char *base_dn;
-};
struct ldapsrv_service {
struct tls_params *tls_params;