summaryrefslogtreecommitdiff
path: root/server/providers/ldap/sdap_async_connection.c
AgeCommit message (Collapse)AuthorFilesLines
2010-02-05Reactivate old fd handling conditionallySumit Bose1-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.
2010-02-02Add new option ldap_referralsSumit Bose1-0/+11
2010-02-02Use ldap connection callbacks to get file descriptorsSumit Bose1-11/+29
2009-12-18Fix ldap child memory hierarchy and other issuesSimo Sorce1-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()
2009-12-15Don't consider one address with different port numbers as the sameMartin Nagy1-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
2009-11-25Get TGT in a child process.Jakub Hrozek1-164/+52
To avoid blocking in a synchronous call, the TGT is saved in a separate process Fixes: #277
2009-11-20Add initial failover support for ldap and ipaSimo Sorce1-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.
2009-11-09Fix tevent_req error checking.Simo Sorce1-27/+12
When possible using a macro that correctly deals with tstate
2009-11-06Split async helpers in multiple filesSimo Sorce1-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.