summaryrefslogtreecommitdiff
path: root/server/responder/common/responder_common.c
AgeCommit message (Collapse)AuthorFilesLines
2009-08-11Change services identification mechanismSimo Sorce1-4/+12
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.
2009-08-10Simplify interfaces initializationSimo Sorce1-22/+8
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-2/+2
Rationalize and rename connection names in preparatoin for merging of server and connection structures.
2009-08-10Remove redundant memory contextsSimo Sorce1-12/+13
Simplify code by removing stuff that is never used or redundant.
2009-08-05Move parsing of names and domains into util/Jakub Hrozek1-113/+1
2009-04-27Eliminate segfault on NSS and PAM responder startup.Stephen Gallagher1-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.
2009-04-08Change the way we retrieve domainsSimo Sorce1-35/+1
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.
2009-04-07Unify name parsing and reposnder headersSimo Sorce1-26/+110
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-27Make nsssrv use the common responder functionsSimo Sorce1-7/+2
Make nss_ctx a private pointer of the common resp_ctx Use sss_process_init and remove all duplicate functions from nsssrv.c
2009-03-26Enable autoreconnection to the Data Provider in PAMStephen Gallagher1-2/+4
2009-03-26Refactor nss_ctx to resp_ctx in respondersStephen Gallagher1-84/+84
2009-03-10added generic PAM return messages and a false login delaySumit Bose1-1/+1
2009-03-09use fixed paths to sockets to make sure clients and server are using the sameSumit Bose1-54/+64
2009-03-05added a privileged pipeSumit Bose1-3/+129
2009-02-27Refactor creation of domain_map into confdbStephen Gallagher1-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.
2009-02-26Rebase the code to use talloc, tdb, tevent, ldb as externalSimo Sorce1-16/+16
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/+518
Also move responders under server/responder with shared code in server/responder/common Signed-off-by: Simo Sorce <ssorce@redhat.com>