summaryrefslogtreecommitdiff
path: root/src/providers/ldap/ldap_id_enum.c
AgeCommit message (Collapse)AuthorFilesLines
2012-08-23Clean up cache on server reinitializationPavel Březina1-4/+2
https://fedorahosted.org/sssd/ticket/734 We successfully detect when the server is reinitialized by testing the new lastUSN value. The maximum USN values are set to zero, but the current cache content remains. This patch removes records that were deleted from the server. It uses the following approach: 1. remove entryUSN attribute from all entries 2. run enumeration 3. remove records that doesn't have entryUSN attribute updated We don't need to do this for sudo rules, they will be refreshed automatically during next smart/full refresh, or when an expired rule is deleted.
2012-05-31Add support for filtering atributesJan Zeleny1-4/+4
This patch adds support for filtering attributes when constructing attribute list from a map for LDAP query.
2012-05-10LDAP: Add attr_count return value to build_attrs_from_map()Stephen Gallagher1-2/+2
This is necessary because in several places in the code, we are appending to the attrs returned from this value, and if we relied on the map size macro, we would be appending after the NULL terminator if one or more attributes were defined as NULL.
2012-05-03LDAP: Add support for enumeration of ID-mapped users and groupsStephen Gallagher1-31/+102
2012-01-31LDAP: Add enumeration support for servicesStephen Gallagher1-3/+57
2011-11-02LDAP: Add support for multiple search bases for group enumerationStephen Gallagher1-1/+2
2011-11-02LDAP: Add support for multiple search bases for user enumerationStephen Gallagher1-1/+2
2011-11-02LDAP: Convert ldap_*_search_filterStephen Gallagher1-26/+6
Instead of making this a global option for all user lookups, make it only used if the search base is passed without an explicit filter.
2011-11-02LDAP: Support multiple group search bases (non-enumeration, RFC2307)Stephen Gallagher1-1/+7
2011-11-02LDAP: Support multiple user search bases (non-enumeration)Stephen Gallagher1-0/+5
2011-08-15sysdb refactoring: deleted domain variables in sysdb APIJan Zeleny1-3/+1
The patch also updates code using modified functions. Tests have also been adjusted.
2011-08-04Fix returning groups when gidNumber attribute is not orderedJakub Hrozek1-2/+4
https://fedorahosted.org/sssd/ticket/951
2011-05-04Fixed lastUSN checking improvementsJan Zeleny1-0/+15
This patch fixes some issues with setting lastUSN attribute and it adds check against the highest user/group USN after enumeration to keep better track of the real highest USN. Optimal solution here would be to schedule a check of rootDSE entry right after the enumeration finishes, but for the moment this is good enough.
2011-04-19Add user and group search LDAP filter optionsJakub Hrozek1-6/+26
https://fedorahosted.org/sssd/ticket/647
2011-03-14Require existence of username, uid and gid for user enumerationStephen Gallagher1-12/+18
We will ignore users that do not have these three values.
2011-03-14Require existence of GID number and name in group searchesStephen Gallagher1-12/+16
https://fedorahosted.org/sssd/ticket/824
2011-01-17Add ldap_search_enumeration_timeout config optionSumit Bose1-2/+2
2011-01-17Add timeout parameter to sdap_get_generic_send()Sumit Bose1-2/+6
2010-12-17Start first enumeration immediatelyStephen Gallagher1-0/+14
Previously, we would wait for ten seconds before starting an enumeration. However, this meant that on the first startup (before we had run our first enumeration) there was a ten-second window where clients would immediately get back a response with no entries instead of blocking until the enumeration completed. With this patch, SSSD will now run an enumeration immediately upon startup. Further startups will retain the ten-second delay so as not to slow down system bootups. https://fedorahosted.org/sssd/ticket/616
2010-12-07ldap: Use USN entries if available.Simo Sorce1-26/+25
Otherwise fallback to the default modifyTimestamp indicator
2010-09-08Dead assignments cleanup in providers codeJan Zeleny1-3/+0
Dead assignments were deleted. Also prototype of function sdap_access_decide_offline() has been changed, since its return code was never used. Ticket: #586
2010-07-09Use new LDAP connection framework for LDAP user and group enumeration.eindenbom1-236/+131
2010-06-10Properly check that the timeout event was created for cleanup/enumStephen Gallagher1-1/+23
We need to make sure that if we didn't create the timeout, that we cancel the request so there's no chance of ending up with two enumerations/cleanups running simultaneously. We'll attempt to reschedule later, if possible. https://fedorahosted.org/sssd/ticket/524
2010-05-07Fix segfault in GSSAPI reconnect codeStephen Gallagher1-2/+6
Also clean up some duplicated code into a single common routine sdap_account_info_common_done()
2010-05-03Better handle sdap_handle memory from callers.Simo Sorce1-16/+95
Always just mark the sdap_handle as not connected and let later _send() functions to take care of freeing the handle before reconnecting. Introduce restart functions to avoid calling _send() functions in _done() functions error paths as this would have the same effect as directly freeing the sdap_handle and cause access to freed memory in sdap_handle_release() By freeing sdap_handle only in the connection _recv() function we guarantee it can never be done within sdap_handle_release() but only in a following event.
2010-02-18Rename server/ directory to src/Stephen Gallagher1-0/+608
Also update BUILD.txt