[SSSD] [PATCH] Save original memberof, not memberof

Jakub Hrozek jhrozek at redhat.com
Mon Dec 19 11:49:27 UTC 2011


The sdap_save_* refactoring brought one bug where instead of saving into
SYSDB_ORIG_MEMBEROF we would save into SYSDB_MEMBEROF. I rechecked all
other attribute names and this was the only one that was changed.
-------------- next part --------------
From 359ba228fbd33c4014d01b400d8cdf247bfd8822 Mon Sep 17 00:00:00 2001
From: Jakub Hrozek <jhrozek at redhat.com>
Date: Mon, 19 Dec 2011 12:47:34 +0100
Subject: [PATCH] Save original memberof, not memberof

---
 src/providers/ldap/sdap_async_users.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/providers/ldap/sdap_async_users.c b/src/providers/ldap/sdap_async_users.c
index cccf75b8caecd34ba6d562e2e8b8e7e3d0e18e49..61d06228bd61eec66738f914b44e2a173ba8c5c4 100644
--- a/src/providers/ldap/sdap_async_users.c
+++ b/src/providers/ldap/sdap_async_users.c
@@ -154,7 +154,7 @@ int sdap_save_user(TALLOC_CTX *memctx,
         goto fail;
     }
 
-    ret = sdap_attrs_add_list(attrs, SYSDB_MEMBEROF,
+    ret = sdap_attrs_add_list(attrs, SYSDB_ORIG_MEMBEROF,
                               "original memberOf",
                               name, user_attrs);
     if (ret != EOK) {
-- 
1.7.7.4



More information about the sssd-devel mailing list