This is an automated email from the git hooks/post-receive script.
lkrispen pushed a change to branch 389-ds-base-1.3.7
in repository 389-ds-base.
from 4fdae3c ticket 49551 - correctly handle subordinates and tombstone
numsubordinates
new abdde67 Ticket 49161 - memberof fails if group is moved into scope
The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "adds" were already present in the repository and have only
been added to this reference.
Summary of changes:
ldap/servers/plugins/memberof/memberof.c | 7 +++++++
1 file changed, 7 insertions(+)
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
Show replies by date
This is an automated email from the git hooks/post-receive script.
lkrispen pushed a commit to branch 389-ds-base-1.3.7
in repository 389-ds-base.
commit abdde67d897327565656490d57d9fbab43b20ba9
Author: Ludwig Krispenz <lkrispen(a)redhat.com>
Date: Tue Feb 27 13:56:14 2018 +0100
Ticket 49161 - memberof fails if group is moved into scope
if the DEL part of the replace of memberof fails because it does not exist
just add the new memberof values
Reviwed by: Mark, thanks
---
ldap/servers/plugins/memberof/memberof.c | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/ldap/servers/plugins/memberof/memberof.c
b/ldap/servers/plugins/memberof/memberof.c
index 263b2ee..87313ff 100644
--- a/ldap/servers/plugins/memberof/memberof.c
+++ b/ldap/servers/plugins/memberof/memberof.c
@@ -1721,6 +1721,13 @@ memberof_modop_one_replace_r(Slapi_PBlock *pb, MemberOfConfig
*config, int mod_o
replace_mod.mod_values = replace_val;
}
rc = memberof_add_memberof_attr(mods, op_to, config->auto_add_oc);
+ if (rc == LDAP_NO_SUCH_ATTRIBUTE) {
+ /* the memberof values to be replaced do not exist
+ * just add the new values */
+ mods[0] = mods[1];
+ mods[1] = NULL;
+ rc = memberof_add_memberof_attr(mods, op_to, config->auto_add_oc);
+ }
}
}
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.