summaryrefslogtreecommitdiffstats
path: root/src/db/sysdb_ops.c
diff options
context:
space:
mode:
authorSumit Bose <sbose@redhat.com>2011-02-28 15:29:46 +0100
committerSimo Sorce <ssorce@redhat.com>2011-02-28 11:53:12 -0500
commit57d6586b06dd833330f7f9b125a81b5acabfa1a7 (patch)
treee301d6e6f0f9dda3cc6fc35df0be3f14fa70d951 /src/db/sysdb_ops.c
parent6c9cb2b20ce9b9a1b9ce8d7485e95ac294555398 (diff)
downloadsssd-57d6586b06dd833330f7f9b125a81b5acabfa1a7.tar.gz
sssd-57d6586b06dd833330f7f9b125a81b5acabfa1a7.tar.xz
sssd-57d6586b06dd833330f7f9b125a81b5acabfa1a7.zip
Do not try to delete sysbd memberOf attribute
Diffstat (limited to 'src/db/sysdb_ops.c')
-rw-r--r--src/db/sysdb_ops.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/db/sysdb_ops.c b/src/db/sysdb_ops.c
index c36b0ee83..e60af7175 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],