summaryrefslogtreecommitdiff
path: root/server/responder/common/responder_dp.c
AgeCommit message (Collapse)AuthorFilesLines
2009-11-23Speed up user requests while offlineStephen Gallagher1-1/+6
This adds a new boolean option to sss_dp_send_acct_req() called fast_reply. If we make a request to the backends and we are currently offline, this option will determine whether we should immediately return from the cache (acceptable for NSS requests) or potentially wait for an online check to complete (required for PAM requests).
2009-11-12Change var name to make its use more clear.Simo Sorce1-6/+6
Change memctx to make clear it should be used only when a callback is being used.
2009-10-09Remove DP processSimo Sorce1-9/+10
Turn the backend process into data provider servers Make Frontends (pam, nss) directly attach to the backends
2009-10-05Make dp requests more robustSimo Sorce1-36/+109
This should fix #218 It should also prevent us from leaking memory in case the original request times out and should prevent races with the callbacks beeing freed after sdp_req is freed and thus dereferencing freed memory in the callbacks detructors.
2009-09-23Revert "Use syslog for logging error conditions in SSSD"Stephen Gallagher1-12/+12
This reverts commit 8c50bd085c0efe5fde354deee2c8118887aae29d. Amended: commit 1016af2b1b97ad4290ccce8fa462cc7e3c191b2e also made use of the SYSLOG_ERROR() macro, so those portions of that code also needed to be reverted.
2009-09-21Use syslog for logging error conditions in SSSDJakub Hrozek1-12/+12
This is just a band-aid until ELAPI is fully functional and ready to use.
2009-09-11Add copyright noticesJakub Hrozek1-0/+21
Fixes: #138
2009-08-18added missing hash_create which was remove by a previous patchSumit Bose1-5/+14
2009-08-17Fix reconnection codeSimo Sorce1-139/+0
Remove redundant reconnection code that was interfeering with the sbus reconnection code. Consolidate include files for sbus relates operations. Make pamsrv code similar to nsssrv code.
2009-08-14Refactor responder_dp.cStephen Gallagher1-85/+85
Many of the functions in responder_dp.c were originally NSS- specific and were moved there from the NSS responder code. Since they are now generic to any responder, rename them to sss_dp_*
2009-08-14Don't go to the backend for identical cache entry requestsStephen Gallagher1-54/+291
Currently, if an additional request comes in for a cache entry while that same entry is already in the process of being refreshed, we start a duplicate cache update request. This patch adds allows the cache to maintain a hash table of all in-progress requests and queue up multiple callbacks for updates in progress. Once the data is returned, all of these callbacks will fire.
2009-08-12Eliminate unnecessary explicit timeout for DP account requestsStephen Gallagher1-33/+19
D-BUS handles timeouts itself and reports DBUS_ERROR_NO_REPLY if a timeout fires, so we can rely on this instead of having an explicit timeout ourselves. Furthermore, the two timeouts present a potential race condition.
2009-08-11Change the why DP clients identifySimo Sorce1-1/+26
Mirrors what we have done with the monitor.
2009-08-10Simplify interfaces initializationSimo Sorce1-18/+6
Make as much as possible static, and remove use of talloc_reference and allocation/deallocation of memory when not necessary. Fix also responder use of rctx->conn, was mistakenly used for both monitor and dp connections.
2009-08-10merge server and connection structuresSimo Sorce1-2/+2
This reduce code duplication as it allows to use one set of watch and timeout functions, and at the same time also allow not to use a secondary structure just to unify these functions.
2009-08-10Cosmetic changesSimo Sorce1-10/+10
Rationalize and rename connection names in preparatoin for merging of server and connection structures.
2009-08-10Remove redundant memory contextsSimo Sorce1-8/+12
Simplify code by removing stuff that is never used or redundant.
2009-07-02check pending_return after dbus_connection_send_with_replySumit Bose1-1/+1
2009-04-17Force user check and discover user's domainSimo Sorce1-0/+262
Force a user lookup against the users domain provider. If a user domain is not specified search though all non fully qualifying domains. Perform authentication against the corrent domain auth backend, based on the user's domain found in the lookup if one was not specified. Also move the NSS-DP functions in COMMON-DP as they are reused by the PAM responder too now.
2009-04-07Unify name parsing and reposnder headersSimo Sorce1-1/+1
Use common sss_parse_name function in all responders Simplify responder headers by combining common,cmd,dp in one header and add name parse structure as part of the common responder context.
2009-03-26Refactor nss_ctx to resp_ctx in respondersStephen Gallagher1-11/+11
2009-03-05added a privileged pipeSumit Bose1-1/+0
2009-02-26Rebase the code to use talloc, tdb, tevent, ldb as externalSimo Sorce1-6/+6
dependencies based on the latest samba code. Convert all references to the old events library to use the renamed tevent library.
2009-02-24Add PAM responderSumit Bose1-0/+123
Also move responders under server/responder with shared code in server/responder/common Signed-off-by: Simo Sorce <ssorce@redhat.com>