summaryrefslogtreecommitdiffstats
path: root/server/providers/ldap/sdap_async_connection.c
Commit message (Collapse)AuthorAgeFilesLines
* Reactivate old fd handling conditionallySumit Bose2010-02-051-1/+24
| | | | | | | Older versions of openLDAP do not provide a connection callback. This patch adds a configure check to see if the callback is available and activates the old way of handling the file description of the LDAP connection. This also means that it is not possible to follow referrals.
* Add new option ldap_referralsSumit Bose2010-02-021-0/+11
|
* Use ldap connection callbacks to get file descriptorsSumit Bose2010-02-021-11/+29
|
* Fix ldap child memory hierarchy and other issuesSimo Sorce2009-12-181-5/+5
| | | | | | | | | | | | | | | | | The timeout handler was not a child of the request so it could fire even though the request was already freed. The code wouldn't use async writes to the children so it could incur in a short write with no way to detect or recover from it. Also fixed style of some helper functions to pass explicit paramters instead of a general structure. Add common code to do async writes to pipes. Fixed async write issue for the krb5_child as well. Fix also sdap_kinit_done(), a return statement was missing and we were mixing SDAP_AUTH and errno return codes in state->result Remove usless helper function that just replicates talloc_strndup()
* Don't consider one address with different port numbers as the sameMartin Nagy2009-12-151-1/+3
| | | | | | | | | | | | | There were two problems with the code. We were using fo_set_server_status() instead of fo_set_port_status() when we failed to connect to a service. This is a problem because if two services use the same server, or we want to use one server with two different ports, marking the whole server as bad is incorrect. The other problem was that be_resolve_server_done() was comparing the hostent structures -- these are, however, equal across multiple server:port pairs with the same server addresses. Fixes: #321
* Get TGT in a child process.Jakub Hrozek2009-11-251-164/+52
| | | | | | | To avoid blocking in a synchronous call, the TGT is saved in a separate process Fixes: #277
* Add initial failover support for ldap and ipaSimo Sorce2009-11-201-8/+59
| | | | | | | The retun values are still not directly used with ldap libraries that still do their own name resolution, but this patch introduces a very basic framework to have a multiple providers in one domain use and share a single failover service if they want to.
* Fix tevent_req error checking.Simo Sorce2009-11-091-27/+12
| | | | When possible using a macro that correctly deals with tstate
* Split async helpers in multiple filesSimo Sorce2009-11-061-0/+1163
The size of sdap_async.c was unmanageable. This patch splits it into a generic file with common infrastructure calls, a file that handles connection calls and a file for id related calls.