[SSSD] [PATCH] Do not try to delete sysbd memberOf attribute

Sumit Bose sbose at redhat.com
Mon Feb 28 14:33:23 UTC 2011


Hi,

Jakub found an issue with RFC2307bis domains without memberOf
attributes on the server. This patch should fix it.

bye,
Sumit
-------------- next part --------------
From 0421cf164ffe1ddae691bcd837b99631d5c5f5f0 Mon Sep 17 00:00:00 2001
From: Sumit Bose <sbose at redhat.com>
Date: Mon, 28 Feb 2011 15:29:46 +0100
Subject: [PATCH] Do not try to delete sysbd memberOf attribute

---
 src/db/sysdb_ops.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/src/db/sysdb_ops.c b/src/db/sysdb_ops.c
index c36b0ee..e60af71 100644
--- a/src/db/sysdb_ops.c
+++ b/src/db/sysdb_ops.c
@@ -2840,6 +2840,10 @@ errno_t sysdb_remove_attrs(struct sysdb_ctx *sysdb,
     in_transaction = true;
 
     for (i = 0; remove_attrs[i]; i++) {
+        /* SYSDB_MEMBEROF is exclusively handled by the memberof plugin */
+        if (strcasecmp(remove_attrs[i], SYSDB_MEMBEROF) == 0) {
+            continue;
+        }
         DEBUG(8, ("Removing attribute [%s] from [%s]\n",
                   remove_attrs[i], name));
         lret = ldb_msg_add_empty(msg, remove_attrs[i],
-- 
1.7.4



More information about the sssd-devel mailing list