summaryrefslogtreecommitdiffstats
path: root/server/responder/common
Commit message (Collapse)AuthorAgeFilesLines
* Don't go to the backend for identical cache entry requestsStephen Gallagher2009-08-142-54/+294
| | | | | | | | | 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.
* Eliminate unnecessary explicit timeout for DP account requestsStephen Gallagher2009-08-121-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.
* Change the why DP clients identifySimo Sorce2009-08-113-5/+38
| | | | Mirrors what we have done with the monitor.
* Change services identification mechanismSimo Sorce2009-08-112-4/+14
| | | | | | | Let services identify themselves voiluntarily as the first operation instead of polling from the monitor. Also consolidate some common functions and make them available as monitor helpers.
* Simplify interfaces initializationSimo Sorce2009-08-103-47/+19
| | | | | | | 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.
* merge server and connection structuresSimo Sorce2009-08-102-4/+4
| | | | | | 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.
* Cosmetic changesSimo Sorce2009-08-103-13/+13
| | | | | Rationalize and rename connection names in preparatoin for merging of server and connection structures.
* Remove redundant memory contextsSimo Sorce2009-08-103-22/+28
| | | | Simplify code by removing stuff that is never used or redundant.
* Move parsing of names and domains into util/Jakub Hrozek2009-08-052-120/+1
|
* Raise debug level for version negotiationSimo Sorce2009-07-201-2/+2
|
* check pending_return after dbus_connection_send_with_replySumit Bose2009-07-021-1/+1
|
* Silence warningsSimo Sorce2009-05-261-2/+2
|
* Do not fire up backend search when the data provider is localJakub Hrozek2009-05-261-0/+4
|
* added more flexible handling of client protocolSumit Bose2009-05-152-1/+41
| | | | | - allow different protocol versions for PAM and NSS - support more than one protocol version in the responder
* Eliminate segfault on NSS and PAM responder startup.Stephen Gallagher2009-04-271-0/+4
| | | | | | | | If the data provider is not yet available when NSS and PAM start, they will generate a segmentation fault when trying to configure their automatic reconnection to the Data Provider. I've now added code in sss_dp_init() to detect whether the dp_ctx is NULL and return EIO.
* Force user check and discover user's domainSimo Sorce2009-04-172-0/+274
| | | | | | | | | | | 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.
* Change the way we retrieve domainsSimo Sorce2009-04-082-37/+2
| | | | | | | | | | | | | To be able to correctly filter out duplicate names when multiple non-fully qualified domains are in use we need to be able to specify the domains order. This is now accomplished by the configuration paramets 'domains' in the config/domains entry. 'domains' is a comma separated list of domain names. This paramter allows also to have disbaled domains in the configuration without requiring to completely delete them. The domains list is now kept in a linked list of sss_domain_info objects. The first domain is also the "default" domain.
* Unify name parsing and reposnder headersSimo Sorce2009-04-076-60/+147
| | | | | | 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.
* Make nsssrv use the common responder functionsSimo Sorce2009-03-274-35/+13
| | | | | Make nss_ctx a private pointer of the common resp_ctx Use sss_process_init and remove all duplicate functions from nsssrv.c
* Enable autoreconnection to the Data Provider in PAMStephen Gallagher2009-03-262-3/+6
|
* Refactor nss_ctx to resp_ctx in respondersStephen Gallagher2009-03-264-98/+98
|
* added generic PAM return messages and a false login delaySumit Bose2009-03-101-1/+1
|
* use fixed paths to sockets to make sure clients and server are using the sameSumit Bose2009-03-093-56/+67
|
* added a privileged pipeSumit Bose2009-03-055-5/+135
|
* first version of LOCAL pam backendSumit Bose2009-03-021-0/+22
|
* Refactor creation of domain_map into confdbStephen Gallagher2009-02-271-68/+3
| | | | | | | | | | | | | | | | | The NSS provider, the Data Provider backends and the InfoPipe all need access to the domain map provided by the confdb. Instead of reimplimenting it in multiple places, it is now provided in a pair of helper functions from the confdb. confdb_get_domains() returns a domain map by reference. Always returns the most up-to-date set of domains from the confdb. confdb_get_domains_list() returns an array of strings of all the domain names. Always returns the most up-to-date set of domains from the confdb. This patch also modifies the btreemap_get_keys() function to better handle memory and report allocation failures.
* Rebase the code to use talloc, tdb, tevent, ldb as externalSimo Sorce2009-02-265-27/+27
| | | | | | dependencies based on the latest samba code. Convert all references to the old events library to use the renamed tevent library.
* Add PAM responderSumit Bose2009-02-248-0/+1077
Also move responders under server/responder with shared code in server/responder/common Signed-off-by: Simo Sorce <ssorce@redhat.com>