summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2010-10-18Updating translation files for releaseStephen Gallagher14-3178/+3420
2010-10-18Move all references to ldap_<entity>_search_base to "advanced" sectionJan Zeleny2-44/+52
The <entity> can be one of user, group or netgroup. The references were removed from example configuration and they were moved from section Configuration options to section Advanced options. Ticket: #607
2010-10-18set in_transaction explicitly to falseJakub Hrozek1-1/+1
2010-10-18Use unsigned long for conversion to id_tJakub Hrozek4-40/+22
We used strtol() on a number of places to convert into uid_t or gid_t from a string representation such as LDAP attribute, but on some platforms, unsigned long might be necessary to store big id_t values. This patch converts to using strtoul() instead.
2010-10-18Add proper nested initgroup support for RFC2307bis serversStephen Gallagher1-3/+761
2010-10-18Modify sysdb_[add|remove]_group_member to accept users and groupsStephen Gallagher4-44/+102
Previously, it assumed that all members were users. This changes the interface so that either a user or a group can be specified. Also, it eliminates the need for a memory context to be passed, since the internal memory should be self-contained.
2010-10-18Handle nested groups in RFC2307bisStephen Gallagher1-1/+776
This first approach handles the non-optimized "pure" RFC2307bis case. It recursively calls into nested groups until it it has found them all or hits the pre-defined nesting limit. It then saves all member users first, then all groups to the sysdb
2010-10-18Make sdap_save_users_send handle zero users gracefullyStephen Gallagher1-0/+5
If we send a zero num_users value, we should just immediately return success, rather than starting a useless transaction
2010-10-18Add option to limit nested groupsSimo Sorce7-3/+24
2010-10-15Save dummy member users during RFC2307 getgr{nam,gid}Jakub Hrozek1-82/+279
2010-10-15sysdb interface for adding fake usersJakub Hrozek4-4/+70
2010-10-15Save dummy groups to cache during initgroupsJakub Hrozek1-0/+125
If during initgroups operation we find out that any of the groups the user is a member of is not cached yet we add a incomplete, expired group entry. That way, we save ourselves from looking up and saving all the potential user entries the group may also consist of. Because the group is expired, it will be refreshed during the next getgrgid/getgrnam call and correct member list will be returned.
2010-10-15sysdb interface for adding incomplete groupsJakub Hrozek4-1/+90
Useful for optimizing the initgroups operation.
2010-10-15Add sysdb_attrs_get_ulong utility functionJakub Hrozek2-0/+29
2010-10-15Check for GSSAPI before attempting to kinitJakub Hrozek1-8/+12
2010-10-13Assorted specfile changesStephen Gallagher1-8/+10
Several problems with the specfile were fixed in the SSSD release in certain RPM-based distributions. This patch pulls them into the example specfile
2010-10-13Rename upgrade_config.py and build it properlyStephen Gallagher4-8/+3
Previously, we were just copying the script into the libexec dir during installation. However, this causes problems for packaging multilib on several distributions. https://fedorahosted.org/sssd/ticket/641
2010-10-13Avoid a global variable in netgroup client.Sumit Bose2-38/+26
The structure which is used to store the result also provides elements to store a context for the netgroup enumeration call.
2010-10-13Implement netgroup support for LDAP providerSumit Bose7-1/+989
2010-10-13Add infrastructure to LDAP provider for netgroup supportSumit Bose8-4/+199
2010-10-13Also return member groups to the clientSumit Bose5-159/+212
2010-10-13Add sysdb_netgroup_base_dn()Sumit Bose2-0/+8
2010-10-13Do not fail if netgroup exists just update the attributesSumit Bose1-1/+1
2010-10-13Add handling of nested netgroups to nss clientSumit Bose3-69/+113
2010-10-13Return NSS_STATUS_RETURN instead of NSS_STATUS_NOTFOUNDSumit Bose1-1/+1
NSS_STATUS_RETURN needs to be returned to glibc otherwise nested groups are not resolved by glibc.
2010-10-13Add missing tevent_req_done()Sumit Bose1-0/+1
2010-10-13Add netgroup support to the NSS responderStephen Gallagher9-2/+926
2010-10-13Split out some helper functions for the NSS responderStephen Gallagher2-83/+147
Create a new private header and make some functions available for other object files.
2010-10-13Add negative cache features for netgroupsStephen Gallagher2-0/+39
2010-10-13Add support for netgroups to NSS sss_clientStephen Gallagher5-6/+367
2010-10-13Rename group.c and passwd.c for clarityStephen Gallagher4-4/+4
Prefixing group.c and passwd.c with "nss_" similar to the way the PAM client sources are prefixed with "pam_"
2010-10-13netgroup testsStephen Gallagher1-0/+516
2010-10-13Netgroups sysdb APIStephen Gallagher4-2/+802
2010-10-13Require explicit setting of callback context for check_cacheStephen Gallagher1-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
2010-10-13Store entry_cache_timeout in sss_domain_info objectStephen Gallagher2-0/+9
This is useful so that the NSS responder can identify an domain's entry timeout for expiring the memory cache for a lookup such as with netgroups.
2010-10-13Add utility function sss_strnlen()Stephen Gallagher2-0/+34
This is useful for guaranteeing the size of an input buffer.
2010-10-13Initialize kerberos service for GSSAPIJakub Hrozek10-5/+303
2010-10-13Make ldap_child report kerberos return code to parentJakub Hrozek4-13/+31
2010-10-13Report Kerberos error code from ldap_child_get_tgt_syncJakub Hrozek1-23/+16
2010-10-13Add KDC to the list of LDAP optionsJakub Hrozek5-1/+22
2010-10-13Raise the required version of libdhashSumit Bose1-1/+1
libdhash version 0.4.2 is required because older versions cannot update hash entries.
2010-10-13Remove unused definesSumit Bose1-2/+0
2010-10-13Distribute XML sources instead of man-pagesSumit Bose1-2/+3
2010-10-13Return all group members from getgr(nam|gid)Ralf Haferkamp1-12/+374
getgrnam()/getgrgid() should return all group members instead of only those which have already been cached (in sysdb). To achieve this every member that is currently not in the cache is looked up via LDAP and saved to the cache.
2010-10-13Shortcut for save_group() to accept sysdb DNs as member attributesRalf Haferkamp1-4/+19
Addtional parameter "populate_members" for save_group() and save_groups() to indicate that the "member" attribute of the groups is populated with sysdb DNs of the members (instead of LDAP DNs).
2010-10-13Rename index to idxSumit Bose1-4/+4
This patch suppresses a 'shadows a global declaration' warning.
2010-10-13Add a missing include fileSumit Bose1-0/+1
strcasecmp() is defined in strings.h which might not be included under certain conditions.
2010-10-13Use POPT_TABLEEND to close option tableSumit Bose7-8/+8
2010-10-13Man pages should mention supported providersJan Zeleny4-13/+28
Each back end can support id, auth or access provider, but each back end supports different subset of these. Man pages should describe which providers are supported by each back end. Ticket: #615
2010-10-08Add common hash table setupStephen Gallagher3-1/+60
sss_hash_create() produces a dhash table living in the talloc hierarchy.