summaryrefslogtreecommitdiff
path: root/source4/ldap_server/ldap_server.h
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2004-09-27 13:20:59 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:59:22 -0500
commit718bb5e8ffb04ab48cb5e9c0a7df848212340a57 (patch)
treee735753dac17fb16aa25d0b2c0af38d10320ba7e /source4/ldap_server/ldap_server.h
parentf64b8cf9cd31d80602aba7d77e366d91127b733d (diff)
downloadsamba-718bb5e8ffb04ab48cb5e9c0a7df848212340a57.tar.gz
samba-718bb5e8ffb04ab48cb5e9c0a7df848212340a57.tar.bz2
samba-718bb5e8ffb04ab48cb5e9c0a7df848212340a57.zip
r2688: - fix case where listed attributes are asked
- use the return code of the functions and only call ldapsrv_terminate_connection from ldapsrv_recv() or ldapsrv_send() - the rootdse is now a normal partition metze (This used to be commit af1501a28d700f90cd2243fbfdce6527a0f62961)
Diffstat (limited to 'source4/ldap_server/ldap_server.h')
-rw-r--r--source4/ldap_server/ldap_server.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/source4/ldap_server/ldap_server.h b/source4/ldap_server/ldap_server.h
index 960ab519bc..6ae9cb42d3 100644
--- a/source4/ldap_server/ldap_server.h
+++ b/source4/ldap_server/ldap_server.h
@@ -45,6 +45,8 @@ struct ldapsrv_call {
struct ldapsrv_connection *conn;
+ const struct auth_session_info *session_info;
+
struct ldap_message request;
struct ldapsrv_reply {
@@ -60,7 +62,7 @@ struct ldapsrv_connection {
struct server_connection *connection;
struct gensec_security *gensec_ctx;
- struct auth_session_info *session_info;
+ const struct auth_session_info *session_info;
struct rw_buffer in_buffer;
struct rw_buffer out_buffer;
@@ -73,6 +75,8 @@ struct ldapsrv_connection {
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_call *call, struct ldap_BindRequest *r);
NTSTATUS (*Unbind)(struct ldapsrv_partition *partition, struct ldapsrv_call *call, struct ldap_UnbindRequest *r);
NTSTATUS (*Search)(struct ldapsrv_partition *partition, struct ldapsrv_call *call, struct ldap_SearchRequest *r);