Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RFE: eliminate the use of char *dn in favor of Slapi_DN *dn #139

Closed
389-ds-bot opened this issue Sep 12, 2020 · 7 comments
Closed

RFE: eliminate the use of char *dn in favor of Slapi_DN *dn #139

389-ds-bot opened this issue Sep 12, 2020 · 7 comments
Labels
closed: fixed Migration flag - Issue
Milestone

Comments

@389-ds-bot
Copy link

Cloned from Pagure issue: https://pagure.io/389-ds-base/issue/139


https://bugzilla.redhat.com/show_bug.cgi?id=213301

Description of problem:
Bugzilla Bug 199923: subtree search fails to find items under a db containing
special characters
(In reply to comment 11)
> That's what Slapi_DN is supposed to do - normalize once, and be able to get
> normalized and "raw" DN where needed.  We should use Slapi_DN as much as
> possible.  We might want to schedule some time to do some much needed API
> revisions to eliminate the use of char *dn in favor of Slapi_DN *dn.  But not
> for 7.2.

In one operation, substr_dn_normalize could be called multiple times against
the
same dn).  We should avoid it.
@389-ds-bot 389-ds-bot added the closed: fixed Migration flag - Issue label Sep 12, 2020
@389-ds-bot 389-ds-bot added this to the 1.2.10.rc1 milestone Sep 12, 2020
@389-ds-bot
Copy link
Author

Comment from rmeggins (@richm) at 2012-01-06 23:03:15

Some of the work has already been done in 1.2.10

@389-ds-bot
Copy link
Author

@389-ds-bot
Copy link
Author

Comment from nhosoi (@nhosoi) at 2012-01-24 02:16:09

With the patch applied, the slapi_dn_normalize_ext count called in the start-up 8682 (times) was lowered to 1113 (times).

@389-ds-bot
Copy link
Author

Comment from nhosoi (@nhosoi) at 2012-01-26 00:11:40

Reviewed by Rich (Thank you!!!)

Pushed to master.

$ git merge trac139
Updating 9760c1c..04dd396
Fast-forward
ldap/servers/plugins/acctpolicy/acct_config.c | 2 +-
ldap/servers/plugins/acctpolicy/acct_plugin.c | 2 +-
ldap/servers/plugins/acl/acleffectiverights.c | 2 +-
ldap/servers/plugins/acl/aclinit.c | 2 +-
ldap/servers/plugins/automember/automember.c | 6 ++--
ldap/servers/plugins/dna/dna.c | 15 +++++---
ldap/servers/plugins/linkedattrs/fixup_task.c | 4 +-
ldap/servers/plugins/linkedattrs/linked_attrs.c | 2 +-
ldap/servers/plugins/memberof/memberof.c | 38 +++++++++++-----------
ldap/servers/plugins/mep/mep.c | 12 +++---
ldap/servers/plugins/referint/referint.c | 4 +-
ldap/servers/plugins/replication/repl5_replica.c | 2 +-
ldap/servers/slapd/config.c | 2 +-
ldap/servers/slapd/dn.c | 2 +-
ldap/servers/slapd/fedse.c | 14 ++++----
ldap/servers/slapd/main.c | 2 +-
ldap/servers/slapd/mapping_tree.c | 6 ++--
ldap/servers/slapd/plugin.c | 4 +-
ldap/servers/slapd/plugin_internal_op.c | 4 +-
ldap/servers/slapd/schema.c | 2 +-
ldap/servers/slapd/snmp_collator.c | 2 +-
21 files changed, 66 insertions(+), 63 deletions(-)

$ git push
Counting objects: 71, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (36/36), done.
Writing objects: 100% (36/36), 3.58 KiB, done.
Total 36 (delta 29), reused 0 (delta 0)
To ssh://git.fedorahosted.org/git/389/ds.git
9760c1c..04dd396 master -> master

@389-ds-bot
Copy link
Author

Comment from nhosoi (@nhosoi) at 2012-01-26 00:12:26

No good way to verify this bug... (just performance gain)

@389-ds-bot
Copy link
Author

Comment from nkinder (@nkinder) at 2012-08-28 04:14:31

Added initial screened field value.

@389-ds-bot
Copy link
Author

Comment from nhosoi (@nhosoi) at 2017-02-11 22:52:07

Metadata Update from @nhosoi:

  • Issue assigned to nhosoi
  • Issue set to the milestone: 1.2.10.rc1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
closed: fixed Migration flag - Issue
Projects
None yet
Development

No branches or pull requests

1 participant