Closed 389-ds-bot closed 4 years ago
Comment from rmeggins (@richm) at 2013-07-31 21:40:58
It's still odd that whoever designed referint would have done a substring search - I think it's bogus but I just hope there was not a good reason . . . maybe for subtree rename?
For example, maybe when there is a subtree rename, we look for any group members that end with the old subtree? e.g. if ou=old,dc=example,dc=com is the old subtree, and ou=new,dc=example,dc=com is the new subtree, maybe referint is looking for (owner=*ou=old,dc=example,dc=com) - to match cn=1,ou=old,dc=example,dc=com and cn=2,ou=old,dc=example,dc=com etc. in order to change them to cn=1,ou=new,dc=example,dc=com etc.?
How does referint handle subtree rename?
Comment from mreynolds (@mreynolds389) at 2013-07-31 22:24:48
revision 0001-Ticket-47411-Replace-substring-search-with-plain-sea.patch
Comment from mreynolds (@mreynolds389) at 2013-07-31 22:26:06
Replying to [comment:5 richm]:
It's still odd that whoever designed referint would have done a substring search - I think it's bogus but I just hope there was not a good reason . . . maybe for subtree rename?
For example, maybe when there is a subtree rename, we look for any group members that end with the old subtree? e.g. if ou=old,dc=example,dc=com is the old subtree, and ou=new,dc=example,dc=com is the new subtree, maybe referint is looking for (owner=*ou=old,dc=example,dc=com) - to match cn=1,ou=old,dc=example,dc=com and cn=2,ou=old,dc=example,dc=com etc. in order to change them to cn=1,ou=new,dc=example,dc=com etc.?
How does referint handle subtree rename?
You are correct, we need the substring search when doing a modrdn operation. New patch attached.
Comment from mreynolds (@mreynolds389) at 2013-08-01 01:16:38
git merge ticket47411 Updating ba70aac..a5dde49 Fast-forward ldap/servers/plugins/referint/referint.c | 7 ++++++- 1 files changed, 6 insertions(+), 1 deletions(-)
git push origin master ba70aac..a5dde49 master -> master
commit a5dde495a7df7b19fd71cccdb0eb1b91d1f73b58 Author: Mark Reynolds mreynolds389@redhat.com Date: Wed Jul 31 12:21:19 2013 -0400
Comment from mreynolds (@mreynolds389) at 2017-02-11 23:06:21
Metadata Update from @mreynolds389:
Cloned from Pagure issue: https://pagure.io/389-ds-base/issue/47411
Opened this ticket per Rich's request, see [https://www.redhat.com/archives/freeipa-devel/2013-June/msg00314.html|freeipa-devel]: