summaryrefslogtreecommitdiffstats
path: root/server/responder/common/responder_common.c
Commit message (Collapse)AuthorAgeFilesLines
* Simplify interfaces initializationSimo Sorce2009-08-101-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.
* merge server and connection structuresSimo Sorce2009-08-101-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.
* Cosmetic changesSimo Sorce2009-08-101-2/+2
| | | | | Rationalize and rename connection names in preparatoin for merging of server and connection structures.
* Remove redundant memory contextsSimo Sorce2009-08-101-12/+13
| | | | Simplify code by removing stuff that is never used or redundant.
* Move parsing of names and domains into util/Jakub Hrozek2009-08-051-113/+1
|
* 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.
* Change the way we retrieve domainsSimo Sorce2009-04-081-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.
* Unify name parsing and reposnder headersSimo Sorce2009-04-071-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.
* Make nsssrv use the common responder functionsSimo Sorce2009-03-271-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
* Enable autoreconnection to the Data Provider in PAMStephen Gallagher2009-03-261-2/+4
|
* Refactor nss_ctx to resp_ctx in respondersStephen Gallagher2009-03-261-84/+84
|
* 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-091-54/+64
|
* added a privileged pipeSumit Bose2009-03-051-3/+129
|
* 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-261-16/+16
| | | | | | 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-241-0/+518
Also move responders under server/responder with shared code in server/responder/common Signed-off-by: Simo Sorce <ssorce@redhat.com>