Bug 537466
| Summary: | nsslapd-distribution-plugin should not require plugin name to begin with "lib" | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Retired] 389 | Reporter: | Jenny Severance <jgalipea> | ||||
| Component: | Server - Plugins | Assignee: | Rich Megginson <rmeggins> | ||||
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Viktor Ashirov <vashirov> | ||||
| Severity: | medium | Docs Contact: | |||||
| Priority: | low | ||||||
| Version: | 1.3.0 | ||||||
| Target Milestone: | --- | ||||||
| Target Release: | --- | ||||||
| Hardware: | All | ||||||
| OS: | Linux | ||||||
| Whiteboard: | |||||||
| Fixed In Version: | Doc Type: | Bug Fix | |||||
| Doc Text: | Story Points: | --- | |||||
| Clone Of: | Environment: | ||||||
| Last Closed: | 2015-12-07 17:03:34 UTC | Type: | --- | ||||
| Regression: | --- | Mount Type: | --- | ||||
| Documentation: | --- | CRM: | |||||
| Verified Versions: | Category: | --- | |||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||
| Embargoed: | |||||||
| Bug Depends On: | |||||||
| Bug Blocks: | 434914, 543590 | ||||||
| Attachments: |
|
||||||
|
Description
Jenny Severance
2009-11-13 18:22:22 UTC
*** Bug 537234 has been marked as a duplicate of this bug. *** Created attachment 386889 [details]
patch
Comment on attachment 386889 [details]
patch
ack.
To ssh://git.fedorahosted.org/git/389/ds.git
73fdd3b..62d9674 master -> master
commit 62d967419616d77891c78e4ee3553482cbea1c17
Author: Rich Megginson <rmeggins>
Date: Tue Jan 26 11:15:18 2010 -0700
Reviewed by: nhosoi (Thanks!)
Branch: HEAD
Fix Description: We use the function PL_GetLibraryName from NSPR to get the
platform specific DLL/shared lib filename suffix. Unfortunately, this funct
also prepends the string "lib" to the given name if the given file has no
suffix. If the given name already has the correct suffix, it does not prepe
the "lib" to the name. get_plugin_name() should look for the original
library name in the string returned by PL_GetLibraryName. If it is there, a
has something before it in the string, see if it is "/lib" - if so, remove t
extraneous "lib" string. If "/lib" is not there, then just pass the string
through as is.
To summarize:
/full/path/to/name.so -> /full/path/to/name.so - error if /full/path/to/name
name -> /default/plugin/path/libname.so -> /default/plugin/path/name.so
name.so -> /default/plugin/path/name.so
Platforms tested: RHEL5 x86_64
Flag Day: no
Doc impact: no
verfied - RHEL 4 version: redhat-ds-base-8.2.0-2010053104.el4dsrv plugin loaded correctly - no errors # dc\3Dexample\2Cdc\3Dcom, mapping tree, config dn: cn=dc\3Dexample\2Cdc\3Dcom,cn=mapping tree,cn=config objectClass: top objectClass: extensibleObject objectClass: nsMappingTree cn: dc=example,dc=com cn: "dc=example,dc=com" nsslapd-state: backend nsslapd-backend: userRoot nsslapd-backend: BE_1 nsslapd-backend: BE_2 nsslapd-backend: BE_3 nsslapd-distribution-plugin: standard_distrib_plugin_Linux.so nsslapd-distribution-funct: alpha_distribution |