summaryrefslogtreecommitdiffstats
path: root/server/providers/ldap/sdap_async.h
diff options
context:
space:
mode:
authorSumit Bose <sbose@redhat.com>2009-10-14 17:42:28 +0200
committerStephen Gallagher <sgallagh@redhat.com>2009-10-14 15:24:54 -0400
commitc4f19342a55bbbaa09e126013b8976cb2dd31b94 (patch)
treef42de0f661cf556627f4c9d179d5921e9dcc1416 /server/providers/ldap/sdap_async.h
parent74cc8eb40a55f07431ec9dac0ecc63af850a34a7 (diff)
downloadsssd-c4f19342a55bbbaa09e126013b8976cb2dd31b94.tar.gz
sssd-c4f19342a55bbbaa09e126013b8976cb2dd31b94.tar.xz
sssd-c4f19342a55bbbaa09e126013b8976cb2dd31b94.zip
make sdap_id_connect_* independent of sdap_id_ctx
The sdap_id_connect_* request tries to bind to an LDAP server with the default credentials. Only the opts component of the sdap_id_ctx context is used. A new request sdap_cli_connect_* is created which expects only the opts pointer as parameter and not the whole context. This makes it reusable by other providers.
Diffstat (limited to 'server/providers/ldap/sdap_async.h')
-rw-r--r--server/providers/ldap/sdap_async.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/server/providers/ldap/sdap_async.h b/server/providers/ldap/sdap_async.h
index b79960a50..8fab8eb6e 100644
--- a/server/providers/ldap/sdap_async.h
+++ b/server/providers/ldap/sdap_async.h
@@ -89,3 +89,9 @@ struct tevent_req *sdap_exop_modify_passwd_send(TALLOC_CTX *memctx,
char *password,
char *new_password);
int sdap_exop_modify_passwd_recv(struct tevent_req *req, enum sdap_result *result);
+
+struct tevent_req *sdap_cli_connect_send(TALLOC_CTX *memctx,
+ struct tevent_context *ev,
+ struct sdap_options *opts);
+int sdap_cli_connect_recv(struct tevent_req *req, TALLOC_CTX *memctx,
+ struct sdap_handle **gsh);