diff options
-rw-r--r-- | 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 c36b0ee8..e60af717 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], |