844129da33797fba15314372a0dfab4cfe8162e8Aki Tuomi/* Handle an LDAP response. Returns 0 on success, otherwise the OpenLDAP error
844129da33797fba15314372a0dfab4cfe8162e8Aki Tuomitypedef int ldap_response_callback_t(struct ldap_connection *conn,
844129da33797fba15314372a0dfab4cfe8162e8Aki Tuomi/* Send the request. Returns 0 on success, otherwise the OpenLDAP error number
844129da33797fba15314372a0dfab4cfe8162e8Aki Tuomi and sets error_r string. */
844129da33797fba15314372a0dfab4cfe8162e8Aki Tuomitypedef int ldap_send_request_t(struct ldap_connection *conn,
844129da33797fba15314372a0dfab4cfe8162e8Aki Tuomi const char **error_r);
844129da33797fba15314372a0dfab4cfe8162e8Aki Tuomi ARRAY(struct ldap_op_queue_entry *) request_array;
844129da33797fba15314372a0dfab4cfe8162e8Aki Tuomiint ldap_connection_init(struct ldap_client *client,
844129da33797fba15314372a0dfab4cfe8162e8Aki Tuomi struct ldap_connection **conn_r, const char **error_r);
844129da33797fba15314372a0dfab4cfe8162e8Aki Tuomivoid ldap_connection_deinit(struct ldap_connection **_conn);
844129da33797fba15314372a0dfab4cfe8162e8Aki Tuomivoid ldap_connection_switch_ioloop(struct ldap_connection *conn);
9e6c76cae59ece71f72e33d8fac9025ee12eaf05Timo Sirainenbool ldap_connection_have_settings(struct ldap_connection *conn,
844129da33797fba15314372a0dfab4cfe8162e8Aki Tuomivoid ldap_connection_search_start(struct ldap_connection *conn,
844129da33797fba15314372a0dfab4cfe8162e8Aki Tuomivoid ldap_connection_compare_start(struct ldap_connection *conn,
844129da33797fba15314372a0dfab4cfe8162e8Aki Tuomivoid ldap_connection_kill(struct ldap_connection *conn);
844129da33797fba15314372a0dfab4cfe8162e8Aki Tuomiint ldap_connection_check(struct ldap_connection *conn);
844129da33797fba15314372a0dfab4cfe8162e8Aki Tuomivoid ldap_connection_queue_request(struct ldap_connection *conn, struct ldap_op_queue_entry *req);
844129da33797fba15314372a0dfab4cfe8162e8Aki Tuomiint ldap_entry_init(struct ldap_entry *obj, struct ldap_result *result, LDAPMessage *message);