diff options
author | Jakub Hrozek <jhrozek@redhat.com> | 2012-11-12 17:42:22 +0100 |
---|---|---|
committer | Jakub Hrozek <jhrozek@redhat.com> | 2012-11-13 12:50:56 +0100 |
commit | 5fe7390f295321f6a13afddf2023aae45a32aad2 (patch) | |
tree | 9d37f53a52a9ad26f6c8013a1f9e2325f74b3510 /src/db | |
parent | 7eabf0b9d835bfb724d1c348fd0acd4975652a1b (diff) | |
download | sssd-5fe7390f295321f6a13afddf2023aae45a32aad2.tar.gz sssd-5fe7390f295321f6a13afddf2023aae45a32aad2.tar.bz2 sssd-5fe7390f295321f6a13afddf2023aae45a32aad2.zip |
SYSDB: Do not touch the member attribute during conversion to ghost users
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
Diffstat (limited to 'src/db')
-rw-r--r-- | src/db/sysdb_upgrade.c | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/src/db/sysdb_upgrade.c b/src/db/sysdb_upgrade.c index 83ef83d3..59171c1e 100644 --- a/src/db/sysdb_upgrade.c +++ b/src/db/sysdb_upgrade.c @@ -1254,17 +1254,6 @@ int sysdb_upgrade_10(struct sysdb_ctx *sysdb, const char **ver) goto done; } - ret = ldb_msg_add_empty(msg, "member", LDB_FLAG_MOD_DELETE, NULL); - if (ret != LDB_SUCCESS) { - ret = ENOMEM; - goto done; - } - ret = ldb_msg_add_string(msg, "member", ldb_dn_get_linearized(user->dn)); - if (ret != LDB_SUCCESS) { - ret = ENOMEM; - goto done; - } - ret = ldb_modify(sysdb->ldb, msg); talloc_zfree(msg); if (ret != LDB_SUCCESS) { |