summaryrefslogtreecommitdiffstats
path: root/src/responder/nss
Commit message (Collapse)AuthorAgeFilesLines
* Split the logic to check cache expiration into separate functionJakub Hrozek2012-02-051-43/+17
|
* RESPONDERS: Refactor setent_req_listJakub Hrozek2012-02-054-95/+43
| | | | | Makes the setent_add_ref() and setent_notify_*() functions more generic to be reusable by the autofs responder.
* NSS: Add individual timeouts for entry typesStephen Gallagher2012-02-041-1/+1
| | | | https://fedorahosted.org/sssd/ticket/1016
* NSS: Use sss_hash_create instead of destructorJakub Hrozek2012-02-042-13/+2
|
* RESPONDERS: Provide a common sss_cmd_send_error functionJakub Hrozek2012-02-021-13/+1
| | | | The common function could be reused in new responders
* Refactor nss_cmd_send_emptyJakub Hrozek2012-01-314-41/+7
|
* NSS: Add service enumeration support to NSS providerStephen Gallagher2012-01-272-1/+659
|
* DP: Refactor responder_dp_req so it's reusable by other respondersJakub Hrozek2012-01-271-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | * the internal request is now more generic and is decoupled from account-specific data. There is a new sss_dp_issue_request() wrapper that issues a BE request or registers a callback * the public requests all use struct sss_dp_req_state as the tevent_req state data. This allows to report back data from the internal request even if the caller is just a callback notifier * each specific request now uses an _info structure that contains all the data necessary to construct a DBusMessage passed to provider * each specific request now defines a sss_dp_get_$data_msg callback that is called from the sss_dp_issue_request() common wraper. The purpose of the wrapper is to construct a DBusMessage and bind it to a DBus method so the message can be just sent over to back end The miscellanous changes include: * change SSS_DP_ constants to an enum. This way, a switch() would error if a value is not handled. * rename sss_dp_get_account_int_send() to sss_dp_internal_get_send() request because the internal request is going to handle more than just account data * the DBus return values were renamed from err_maj, err_min to dp_err and dp_ret respectively
* NSS: Add getservbyname and getservbyport support to the NSS ResponderStephen Gallagher2012-01-273-0/+1209
|
* Move sized_string declaration to utilsStephen Gallagher2012-01-232-19/+0
|
* DP: Fix bugs in sss_dp_get_account_intStephen Gallagher2012-01-231-0/+1
| | | | | | | | | | | | | | | | | | | | | | | The conversion to the tevent_req style introduced numerous bugs related to memory management of the various client requests. In some circumstances, this could cause memory corruption and segmentation faults in the NSS responder. This patch makes the following changes: 1) Rename the internal lookup from subreq to sidereq, to indicate that it is not a sub-request of the current lookup (and therefore is not cancelled if the current request is). 2) Change the handling of the callback loops since they call tevent_req_[done|error], which results in them being freed (and therefore removed from the cb_list. This was the source of the memory corruption that would occasionally result in dereferencing an unreadable request. 3) Remove the unnecessary sss_dp_get_account_int_recv() function and change sss_dp_get_account_done() so that it only frees the sidereq. All of the waiting processes have already been signaled with the final results from sss_dp_get_account_int_done()
* RESPONDER: Extend sss_dp_account_send() to include extra dataStephen Gallagher2012-01-211-4/+4
| | | | | | | Some NSS maps such as 'services' require more values to be passed to the data provider than just the name or ID. In these cases, we will amend an optional component to filter value to pass to the data provider backend.
* NSS: Improve DEBUG messages for netgroup cacheStephen Gallagher2012-01-171-2/+2
|
* nsssrv: use sized_string in fill_grentSimo Sorce2012-01-091-35/+48
|
* nsssrv: use sized_string in fill_pwentSimo Sorce2012-01-091-41/+56
|
* nsssrv: add string manipulation helperSimo Sorce2012-01-092-0/+19
| | | | | the sized_string structure makes it easier to keep track of string lengths and makes passing around data more compat and readable.
* nsssrv: remove unused macroSimo Sorce2012-01-041-2/+0
|
* Return user and group names lowercased in case insensitive domainsJakub Hrozek2011-12-211-12/+32
|
* sss_get_cased_name utility functionJakub Hrozek2011-12-212-9/+9
|
* Deleted declaration of nss_get_dom()Jan Zeleny2011-12-191-4/+0
| | | | | This function has been renamed to responder_get_domain() but this declaration hasn't been deleted.
* Pass client context to sss_dp_get_account_sendJakub Hrozek2011-12-191-1/+1
|
* Use the case sensitivity flag in respondersJakub Hrozek2011-12-162-20/+40
|
* Responders: Split getting domain by name into separate functionJakub Hrozek2011-12-162-17/+4
|
* Ignore NULL-terminator when checking UTF8-validity for netgroupsStephen Gallagher2011-12-081-1/+1
| | | | Glib fails if the NULL-terminator is included when a length is specified.
* Pass the correct private data into Data Provider callbackJakub Hrozek2011-12-071-1/+1
|
* Ignore NULL-terminator when checking UTF8-validityStephen Gallagher2011-12-051-3/+3
| | | | | Glib fails if the NULL-terminator is included when a length is specified.
* RESPONDER: Refactor DP requests into tevent_req styleStephen Gallagher2011-11-292-50/+112
|
* Cleanup: Remove unused parametersJakub Hrozek2011-11-221-2/+1
|
* RESPONDER: Ensure that all input strings are valid UTF-8Stephen Gallagher2011-11-182-0/+28
|
* Enable the midpoint cache update by defaultStephen Gallagher2011-09-211-1/+1
| | | | https://fedorahosted.org/sssd/ticket/918
* New DEBUG facility - SSSDBG_UNRESOLVED changed from -1 to 0Pavel Březina2011-08-251-1/+4
| | | | | | | | | | | | | | | | | | | | | Removed: SSS_UNRESOLVED_DEBUG_LEVEL (completely replaced with SSSDBG_UNRESOLVED) Added new macro: CONVERT_AND_SET_DEBUG_LEVEL(new_value) Changes unresolved debug level value (SSSDBG_UNRESOLVED) from -1 to 0 so DEBUG macro could be reduced by one condition. Anyway, it has a minor effect, every time you want to load debug_level from command line parameters, you have to use following pattern: /* Set debug level to invalid value so we can deside if -d 0 was used. */ debug_level = SSSDBG_INVALID; pc = poptGetContext(argv[0], argc, argv, long_options, 0); while((opt = poptGetNextOpt(pc)) != -1) { ... } CONVERT_AND_SET_DEBUG_LEVEL(debug_level);
* New DEBUG facility - conversionPavel Březina2011-08-251-0/+2
| | | | | | | | | | https://fedorahosted.org/sssd/ticket/925 Conversion of the old debug_level format to the new one. (only where it was necessary) Removed: SSS_DEFAULT_DEBUG_LEVEL (completely replaced with SSSDBG_DEFAULT)
* sysdb refactoring: deleted domain variables in sysdb APIJan Zeleny2011-08-152-9/+8
| | | | | The patch also updates code using modified functions. Tests have also been adjusted.
* Remove unused temporary contextJakub Hrozek2011-08-081-5/+0
|
* Prevent segfault if vetoed_shells are specified without allowed_shellsJakub Hrozek2011-08-081-16/+19
| | | | https://fedorahosted.org/sssd/ticket/954
* Add vetoed_shells optionJohn Hodrien2011-07-293-1/+17
| | | | | | | | There may be users in LDAP that have a valid but unwelcome shell set in their account. This adds a blacklist of shells that should always be replaced by the fallback_shell. Signed-off-by: Stephen Gallagher <sgallagh@redhat.com>
* Fix indexing of skipped groupsJakub Hrozek2011-07-211-2/+4
| | | | https://fedorahosted.org/sssd/ticket/928
* fix typosSimo Sorce2011-06-271-5/+5
|
* Non-posix group processing - ldap provider and nss responderJan Zeleny2011-06-021-3/+11
|
* Fix typo in initgroups negative cache checkStephen Gallagher2011-05-311-1/+1
|
* Add new options to override shell valueJakub Hrozek2011-05-203-1/+123
| | | | https://fedorahosted.org/sssd/ticket/742
* Add a new option to override home directory valueJakub Hrozek2011-05-203-1/+140
| | | | https://fedorahosted.org/sssd/ticket/551
* Add a new option to override primary GID numberJakub Hrozek2011-05-202-2/+10
| | | | https://fedorahosted.org/sssd/ticket/742
* Allow changing the log level without restartStephen Gallagher2011-05-061-1/+1
| | | | | | We will now re-read the confdb debug_level value when processing the monitor_common_logrotate() function, which occurs when the monitor receives a SIGHUP.
* Do not leak netgroups hash tableJakub Hrozek2011-05-061-0/+12
|
* Don't use negative cache in netgroup lookupJan Zeleny2011-04-252-20/+20
| | | | | | | | | | | | | | In responder a negative cache is used to indicate that the record has not been found by previous lookup. This approach is however not applicable for netgroup lookup because the design of their lookup is a little different. This patch removes some pieces of code working with negative cache, because they didn't fuction well. Instead a new flag has been added to the positive cache. This flag indicates if the record in the cache is a record of existing netgroup or it's just a placeholder. https://fedorahosted.org/sssd/ticket/820
* Fix regression where nonexistent entries were never added to the negative cacheStephen Gallagher2011-04-151-21/+21
|
* Fix a regression with the negative cache in multi-domain configurationsStephen Gallagher2011-04-151-3/+18
|
* Change state of hash entry if netgroup cannot be parsedSumit Bose2011-03-091-0/+2
|
* Refactor set_netgroup_entry()Sumit Bose2011-03-071-4/+7
| | | | | | To avoid wrong or missing netgroup names in the getent_ctx destructor set_netgroup_entry() now takes the name out of the getent_ctx struct instead of using a separate argument.