diff options
author | Sumit Bose <sbose@redhat.com> | 2011-02-28 15:29:46 +0100 |
---|---|---|
committer | Stephen Gallagher <sgallagh@redhat.com> | 2011-03-07 10:55:52 -0500 |
commit | 335ddc0d500b5feca933046da05d88a5b12e3525 (patch) | |
tree | 29df6b11b1393814bf4c50421ecebbdb4af424cb /src/db | |
parent | a2ed3aa9470b1c803c43b4ebaea7db625a6296de (diff) | |
download | sssd-335ddc0d500b5feca933046da05d88a5b12e3525.tar.gz sssd-335ddc0d500b5feca933046da05d88a5b12e3525.tar.xz sssd-335ddc0d500b5feca933046da05d88a5b12e3525.zip |
Do not try to delete sysbd memberOf attribute
Diffstat (limited to 'src/db')
-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 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], |