summaryrefslogtreecommitdiff
path: root/src/db
AgeCommit message (Collapse)AuthorFilesLines
2012-05-31Ghost members - sysdb upgrade routineJan Zeleny3-1/+157
It is remotely possible to have sysdb in an inconsistent state that might need upgrade. Consider scenario when user asks for group information. Some fake users are added as a part of this operation. Before users can be fully resolved and stored properly, SSSD is shut down and upgrade is performed. In this case we need to go over all fake user records (uidNumber=0) and replace each of them with ghost record in all group objects that are stated in its memberof attribute.
2012-05-31Ghost members - modifications in sysdbJan Zeleny2-80/+153
Deleted sysdb_add_fake_user(): This function is no longer used. Modified sysdb_add_user(): When user object is added to sysdb, it is important to iterate over all groups that might have its name or any of its aliases as ghost member and replace this ghost membership by a real one. This will eliminate duplicite memberships.
2012-05-31Ghost members - add the ghost attribute to sysdbJan Zeleny1-0/+2
2012-05-11SYSDB: Handle user and group renames betterJakub Hrozek1-7/+39
Fixes a regression in the local domain tools where sss_groupadd no longer detected a GID duplicate. The check for EEXIST is moved one level up into more high level function. The patch also adds the same rename support for users. I found it odd that we allowed a rename of groups but not users. There is a catch when storing a user -- his cached password would be gone. I think that renaming a user is such a rare operation that it's not severe, plus there is a warning in the logs.
2012-05-10sysdb: return proper error code from sysdb_sudo_purge_allJakub Hrozek1-1/+1
2012-05-10SYSDB: Add better error logging to sysdb_set_entry_attr()Stephen Gallagher1-2/+8
2012-05-07Fix typo in debug messagePavel Březina1-1/+1
2012-05-03LDAP: Map the user's primaryGroupIDStephen Gallagher1-0/+1
2012-05-03LDAP: Enable looking up ID-mapped users by nameStephen Gallagher1-0/+1
2012-05-03SYSDB: Add sysdb routines for ID-mappingStephen Gallagher2-0/+346
2012-05-03LDAP: Add objectSID config optionStephen Gallagher1-0/+1
2012-05-03SYSDB: Handle upgrade script failures betterStephen Gallagher1-4/+13
There was a bug in finish_upgrade() where it would return EOK if it succeeded in canceling the transaction due to an error. We should instead be returning the original error.
2012-05-02SYSDB: check return valueJakub Hrozek1-2/+2
In addition to testing the number of elements, also check the return value of sysdb_attrs_get_el.
2012-05-02SYSDB: return EOK if empty message is passed into get_rm_msgJakub Hrozek1-0/+1
If the code never entered the loop in get_rm_message, we would return arbitrary return value.
2012-05-02SUDO: Return ret, not EOKJakub Hrozek1-1/+1
This patch fixes bad refactoring - the function used to return value directly on error and EOK as the last statement. If was then converted into using goto label, but the last statement was still returning EOK instead of the value it should.
2012-04-24Sysdb routines for subdomainsJan Zeleny3-81/+617
2012-04-18Removed unused function sysdb_attrs_users_from_ldb_vals()Jan Zeleny2-51/+0
2012-04-18Add sysdb_set_service_attr and sysdb_set_autofsmap_attrJakub Hrozek4-0/+68
2012-03-21Save alias of the primary name, tooJakub Hrozek1-3/+9
2012-03-16SYSDB: Save only lowercased aliases in case-insensitive domainsStephen Gallagher1-19/+28
https://fedorahosted.org/sssd/ticket/1253
2012-03-06Search netgroups by alias, tooJakub Hrozek2-3/+5
https://fedorahosted.org/sssd/ticket/1228
2012-02-29Remove sysdb_get_ctx_from_list()Sumit Bose2-33/+0
2012-02-29Keep sysdb context in domain info structSumit Bose2-0/+89
2012-02-27SSH: Add more debugging messagesJan Cholasta1-4/+11
2012-02-26SSH: Save SSH host name aliasesJan Cholasta2-11/+83
2012-02-24Delete missing attributes from netgroups to be storedJan Zeleny2-0/+16
https://fedorahosted.org/sssd/ticket/1136
2012-02-24IPA hosts refactoringJan Zeleny1-0/+4
2012-02-21Don't give memory context in confdb where not neededJan Zeleny1-3/+3
2012-02-17Redesign purging of the sudo cachePavel Březina2-75/+315
https://fedorahosted.org/sssd/ticket/1173
2012-02-13Fix uninitialized in_transactionStephen Gallagher1-1/+1
Coverity #12521 and #12491
2012-02-10Improve debug messages in sysdb_sudo_check_time()Pavel Březina1-4/+16
2012-02-07IPA: Add host info handlerJan Cholasta2-0/+159
2012-02-07LDAP: Add support for SSH user public keysJan Cholasta1-0/+2
2012-02-06SUDO Integration - sysdb_sudo_check_time() fixPavel Březina1-6/+8
2012-02-06Added some SELinux-related sysdb routinesJan Zeleny3-1/+545
2012-02-06Renamed some sysdb constants for their wider usageJan Zeleny1-5/+3
2012-02-05AUTOFS: sysdb interfaceJakub Hrozek4-7/+520
2012-02-05SYSDB: Remove code duplication between member_add and member_delJakub Hrozek1-39/+14
2012-02-04Fixes for sudo_timedJakub Hrozek1-23/+40
https://fedorahosted.org/sssd/ticket/1116
2012-02-04SUDO Integration - responder 'sudo_timed' optionPavel Březina2-37/+132
https://fedorahosted.org/sssd/ticket/1116
2012-01-31SYSDB: index sudoUserJakub Hrozek3-1/+99
Most of the the searches in the Sudo responder include the sudoUser attribute. Indexing it will make the responder faster.
2012-01-31SYSDB: Add sysdb_attrs_get_uint16_tStephen Gallagher2-0/+28
2012-01-31SYSDB: extend sysdb_store_service() to accept additional attributesStephen Gallagher4-17/+41
2012-01-27SUDO Integration - make sysdb_get_sudo_filter() more configurablePavel Březina2-46/+68
https://fedorahosted.org/sssd/ticket/1143
2012-01-27SYSDB: add support for enumerating servicesStephen Gallagher2-0/+55
2012-01-27SYSDB: Add indexes for servicePort and serviceProtocolStephen Gallagher3-2/+104
2012-01-27SYSDB: Add sysdb routines for manipulating service entriesStephen Gallagher2-0/+773
2012-01-23SYSDB: Move add_string and add_ulong to sysdb_private.hStephen Gallagher2-4/+9
2012-01-21SYSDB: Redundant check is redundant.Stephen Gallagher1-5/+0
Coverity 12480
2012-01-17SUDO Integration - functions for manipulating with 'refreshed' attributePavel Březina2-0/+68
https://fedorahosted.org/sssd/ticket/1110