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