summaryrefslogtreecommitdiff
path: root/src/db/sysdb_upgrade.c
AgeCommit message (Collapse)AuthorFilesLines
2012-12-12SYSDB: More debugging during the conversion to ghost usersJakub Hrozek1-0/+9
We've been hitting situations where the sysdb conversion failed. Unfortunately, the current code doesn't include enough debugging info to pinpoint the failing entries. This patch adds more DEBUG statements for each processed entry.
2012-11-28Uninitialized pointer readMichal Zidek1-1/+1
https://fedorahosted.org/sssd/ticket/1673
2012-11-19Handle conversion to fully qualified usernamesSimo Sorce1-0/+88
In subdomains we have to use fully qualified usernames. Unfortunately we have no other good option than simply removing caches for users of subdomains. This is because the memberof plugin does not support the rename operation.
2012-11-19Simplify writing db update functionsSimo Sorce1-421/+192
Add functions to automate setting versions numbers in the db, also decrease chances of error in copying and pasting code, by setting the version number only once when we commence the upgrade.
2012-11-13SYSDB: Do not touch the member attribute during conversion to ghost usersJakub Hrozek1-11/+0
We attempted to delete the member attributes of groups that contained a particular user during the sysdb upgrade, but obviously, this cannot work for nested groups as the member attribute is present for direct parents only. As a result, we were getting failures during the upgrade. https://fedorahosted.org/sssd/ticket/1631
2012-10-05SSH: Expire hosts in known_hostsJan Cholasta1-0/+89
2012-09-24AUTOFS: convert the existing autofs entries during a sysdb upgradeJakub Hrozek1-0/+134
2012-06-05Fix the 0.11 sysdb upgradeJakub Hrozek1-26/+26
The block that upgraded the version was at a wrong indentation level, so it never ran if there were no fake users to convert
2012-05-31Ghost members - sysdb upgrade routineJan Zeleny1-0/+147
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-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-01-31SYSDB: index sudoUserJakub Hrozek1-0/+88
Most of the the searches in the Sudo responder include the sudoUser attribute. Indexing it will make the responder faster.
2012-01-27SYSDB: Add indexes for servicePort and serviceProtocolStephen Gallagher1-0/+92
2011-11-21Fix FTBFS related to -Werror=format-securityKrzysztof Klimonda1-1/+1
2011-11-02SYSDB: add index for nameAliasStephen Gallagher1-0/+86
2011-10-07SYSDB: New source file for sysdb upgrade routinesStephen Gallagher1-0/+896