summaryrefslogtreecommitdiff
path: root/src/providers/ldap/sdap_async_accounts.c
AgeCommit message (Collapse)AuthorFilesLines
2010-10-18Modify sysdb_[add|remove]_group_member to accept users and groupsStephen Gallagher1-0/+1
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-15Save dummy member users during RFC2307 getgr{nam,gid}Jakub Hrozek1-82/+279
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-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-09-22Request the correct attribute nameJakub Hrozek1-1/+1
2010-09-22Request all group attributes during initgroups processingStephen Gallagher1-5/+6
We tried to be too clever and only requested the name of the group, but we require the objectClass to validate the results. https://fedorahosted.org/sssd/ticket/622
2010-09-02Fixed printing of undefined value in sdap_async_accounts.cJan Zeleny1-1/+1
If sysdb_attrs_get_el() call failed in function sdap_save_group(), it would result in printing an undefined value of variable name. This is now fixed by initializing the variable. Ticket: #579
2010-08-03Clean up initgroups processing for RFC2307Stephen Gallagher1-11/+89
Instead of recursively updating all users of each group the user being queried belongs to, just add or remove membership for the requested user. Fixes https://fedorahosted.org/sssd/ticket/478
2010-06-16Standardize on correct spelling of "principal" for krb5Stephen Gallagher1-2/+2
https://fedorahosted.org/sssd/ticket/542
2010-06-10Properly handle missing originalMemberOf entry in initgroupsStephen Gallagher1-0/+1
Failing to return after the tevent_req_post() here can result in a null-pointer dereference (along with other hard-to-track bugs) https://fedorahosted.org/sssd/ticket/507
2010-04-30Silence warnings with -O2Jakub Hrozek1-2/+4
2010-04-12sysdb: remove remaining traces of sysdb_handleSimo Sorce1-2/+0
2010-04-12Remove remaining use of sysdb_transaction_sendSimo Sorce1-319/+99
2010-04-12sysdb: convert sysdb_store/add(_basic)_groupSimo Sorce1-295/+100
2010-04-12sysdb: convert sysdb_store/add(_basic)_userSimo Sorce1-195/+85
2010-04-12sysdb: convert sysdb_search_entry and sysdb_delete_recursiveSimo Sorce1-37/+11
2010-02-18Rename server/ directory to src/Stephen Gallagher1-0/+2065
Also update BUILD.txt