summaryrefslogtreecommitdiffstats
path: root/src/responder/nss/nsssrv_cmd.c
Commit message (Collapse)AuthorAgeFilesLines
* Ignore NULL-terminator when checking UTF8-validitysssd-1.5.1-45.el5Stephen Gallagher2011-12-051-3/+3
| | | | | Glib fails if the NULL-terminator is included when a length is specified.
* RESPONDER: Ensure that all input strings are valid UTF-8Stephen Gallagher2011-12-051-0/+21
|
* Add vetoed_shells optionJohn Hodrien2011-10-261-15/+29
| | | | | | | | | | | | 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> Prevent segfault if vetoed_shells are specified without allowed_shells https://fedorahosted.org/sssd/ticket/954
* Fix indexing of skipped groupsJakub Hrozek2011-10-261-2/+4
| | | | https://fedorahosted.org/sssd/ticket/928
* Handle non-POSIX groups in nestingJan Zeleny2011-10-261-3/+11
| | | | | | | | Added sysdb_attrs_get_bool() function Non-posix group processing - sysdb changes Non-posix group processing - ldap provider and nss responder
* Support overriding attribute values locallyJakub Hrozek2011-10-261-3/+180
| | | | | | | | | | | | | | | | | | Add a new option to override primary GID number https://fedorahosted.org/sssd/ticket/742 Add a new option to override home directory value https://fedorahosted.org/sssd/ticket/551 Add new options to override shell value https://fedorahosted.org/sssd/ticket/742 Conflicts: src/conf_macros.m4
* Fix typo in initgroups negative cache checkStephen Gallagher2011-10-261-1/+1
|
* Fix regressions in the negative cachesssd-1.5.1-30.el5Stephen Gallagher2011-04-151-24/+39
| | | | | | | | | | Do not throw a DP error when failing to delete a nonexistent entity Add debug logging to the negative cache Fix a regression with the negative cache in multi-domain configurations Fix regression where nonexistent entries were never added to the negative cache
* Remove unused enumeration cache timeout checksSumit Bose2011-01-061-30/+2
| | | | | The existence of the getent_ctx is used to track the enumeration cache timeout.
* Post enumeration tevent request if neededSumit Bose2011-01-061-8/+41
|
* Return groups and users from all domains during enumerationSumit Bose2011-01-061-3/+5
|
* Always use talloc_zero() to allocate cmdctxSumit Bose2010-10-261-2/+2
|
* sysdb interface for adding fake usersJakub Hrozek2010-10-151-1/+1
|
* sysdb interface for adding incomplete groupsJakub Hrozek2010-10-151-1/+1
| | | | Useful for optimizing the initgroups operation.
* Add netgroup support to the NSS responderStephen Gallagher2010-10-131-2/+9
|
* Split out some helper functions for the NSS responderStephen Gallagher2010-10-131-83/+17
| | | | | Create a new private header and make some functions available for other object files.
* Require explicit setting of callback context for check_cacheStephen Gallagher2010-10-131-7/+13
| | | | | Previously, it was implicitly using the nss_dom_ctx, but there are situations where we would want to send a different private context
* Initgroups on a non-cached user should go to the data providerStephen Gallagher2010-09-221-1/+2
| | | | | | | We were accidentally returning an error when sysdb_getpwnam() returned zero results internally in sysdb_initgroups(). The correct behavior here is to return EOK and a result object with zero entries.
* Handle multiple simultaneous enumeration requestsStephen Gallagher2010-09-081-289/+706
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Previously, if a second enumeration request arrived while one was already being processed, each process would receive only a subset of the total number of available users or groups. This is because we were maintaining the response object as a global value in the NSS responder. The second request would come in, see that the data set was already populated, and start reading from wherever the cursor was currently pointed. With this patch, we now move the cursor to the client context instead of the global NSS context. Additionally, this patch completely rewrites the approach to enumerations in the tevent_req style. This makes it much easier to follow in the code. In order to ensure that a slow or malicious client cannot hold onto a reference for the setent result object indefinitely, we set an expiration on the object. We use the enum_cache_timeout here, since that is an appropriate value. If the timeout fires during the normal operation of the get*ent() loop of a client program, we will save the current values of the read index so that we can resume as soon as the object has been refreshed by an implicit setent call. Instead of deleting the enumeration result object immediately after the last in-progress client has read it, we'll keep the object around for the lifetime of enum_cache_timeout. This way, additional clients making enumeration requests can still access the results in-memory.
* Dead assignments cleanup in NSS responderJan Zeleny2010-09-081-5/+7
| | | | | | Various dead assignments were deleted, some return value inspections were added. Ticket: #588
* Refactor the negative cacheStephen Gallagher2010-06-171-13/+14
| | | | | Rename functions from nss_ncache_* to sss_ncache_* Move negative cache to responder/common and rename as negcache.c/h
* Ensure that all domains are checked for users/groupsStephen Gallagher2010-06-171-3/+15
| | | | | | | There was a bug in the negative cache checks (probably a leftover from when filter_users was global-only) that meant that if a user was filtered out of a domain, the remaining domains would not be checked for that user. (Same for groups/initgroups)
* sysdb: convert sysdb_initgroupsSimo Sorce2010-04-121-222/+117
|
* Adjust fill_pwent and fill_grentSimo Sorce2010-04-121-13/+13
| | | | | | | | | fill_pwent should return the number of users actually processed. Otherwise in case of a recoverable error we may end up skipping a large chunk of users. fill_grent doesn't need to distinguish between number of entries and number of groups to process since we started adding memberuid. Remove remnants that are not useful anymore.
* sysdb: convert sysdb_enumgrentSimo Sorce2010-04-121-161/+106
|
* sysdb: convert sysdb_enumpwentSimo Sorce2010-04-121-172/+116
|
* sysdb: convert sysdb_getgrgidSimo Sorce2010-04-121-193/+109
|
* sysdb: convert sysdb_getgrnamSimo Sorce2010-04-121-223/+134
|
* sysdb: convert sysdb_getpwuidSimo Sorce2010-04-121-198/+107
|
* sysdb: convert sysdb_getpwnamSimo Sorce2010-04-121-229/+190
|
* Fixed alignment problems in nss client/serverGeorge McCollister2010-03-081-6/+5
| | | | | | | | I fixed a handful of alignment problems in sss_client and nss responder. Enumerating group and passwd with getgrent and getpwent now works correctly on ARM. Signed-off-by: George McCollister <georgem@novatech-llc.com>
* Add forgotten \n in DEBUG statementsMartin Nagy2010-03-041-2/+2
| | | | | | Logs from confdb with missing '\n' in the DEBUG statements annoyed me so I decided to fix them. I also made a quick grep through the code and found other places so I fixed them too.
* Rename server/ directory to src/Stephen Gallagher2010-02-181-0/+3182
Also update BUILD.txt