summaryrefslogtreecommitdiffstats
path: root/server.h
diff options
context:
space:
mode:
authorSimon Rettberg2015-06-26 14:58:03 +0200
committerSimon Rettberg2015-06-26 14:58:03 +0200
commit2e37d6b71692508fa5d2764c1c80f3c7ca7c2894 (patch)
tree7a2e3240c380b9c532fc990dfefc1179eb3a1420 /server.h
parentFix the fix of the fix of SSL (diff)
downloadldadp-2e37d6b71692508fa5d2764c1c80f3c7ca7c2894.tar.gz
ldadp-2e37d6b71692508fa5d2764c1c80f3c7ca7c2894.tar.xz
ldadp-2e37d6b71692508fa5d2764c1c80f3c7ca7c2894.zip
Send search requests on the same connection the explicit bind was done on, so the user's permissions regarding visibility of search results will be applied
Diffstat (limited to 'server.h')
-rw-r--r--server.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/server.h b/server.h
index 6c4d889..813634b 100644
--- a/server.h
+++ b/server.h
@@ -20,13 +20,17 @@ void server_setFingerprint(const char *server, const char *fingerprint);
BOOL server_initServers();
+void server_free(epoll_server_t *server);
+
BOOL server_send(epoll_server_t *server, const char *buffer, size_t len, const BOOL cork);
server_t *server_getFromBase(struct string *in);
uint32_t server_searchRequest(server_t *server, struct SearchRequest *req);
-uint32_t server_tryUserBind(server_t *server, struct string *binddn, struct string *password);
+uint32_t server_searchRequestOnConnection(epoll_server_t *con, struct SearchRequest *req);
+
+uint32_t server_tryUserBind(server_t *server, struct string *binddn, struct string *password, epoll_server_t **newcon);
#endif