[SSSD] [PATCH] SYSDB: Do not touch the member attribute during conversion to ghost users

Jakub Hrozek jhrozek at redhat.com
Mon Nov 12 16:49:00 UTC 2012


Please see the patch and the commit message.
-------------- next part --------------
>From 4e2337b40257cff7f6a7957e8d024759398eaab3 Mon Sep 17 00:00:00 2001
From: Jakub Hrozek <jhrozek at redhat.com>
Date: Mon, 12 Nov 2012 17:42:22 +0100
Subject: [PATCH] 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
---
 src/db/sysdb_upgrade.c | 11 -----------
 1 file changed, 11 deletions(-)

diff --git a/src/db/sysdb_upgrade.c b/src/db/sysdb_upgrade.c
index 83ef83d3c1b646f1f19d0e7ddb0e1eb3a0ef2efa..59171c1e291e2a910d0d1b0633c78dfb748ff89d 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) {
-- 
1.7.12.1



More information about the sssd-devel mailing list