Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1947457

Summary: Failing to enable the PTA plugin when plugins can be enabled dynamically.
Product: Red Hat Directory Server Reporter: Têko Mihinto <tmihinto>
Component: 389-ds-baseAssignee: LDAP Maintainers <ldap-maint>
Status: CLOSED DUPLICATE QA Contact: RHDS QE <ds-qe-bugs>
Severity: medium Docs Contact: Marc Muehlfeld <mmuehlfe>
Priority: unspecified    
Version: 11.2CC: ldap-maint, mreynolds, pcech
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-05-24 14:10:34 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Têko Mihinto 2021-04-08 14:04:36 UTC
Description of problem:
If RHDS plugins can be enabled dynamically ( "nsslapd-dynamic-plugins" is set to "on" ),
then the PTA plugin cannot be enabled.

Version-Release number of selected component (if applicable):
# cat /etc/redhat-release
Red Hat Enterprise Linux release 8.3 (Ootpa)
#
# rpm -qa | grep 389-ds-base-1
389-ds-base-1.4.3.13-1.module+el8dsrv+8334+69a46a2e.x86_64
#

How reproducible:
Always.

Steps to Reproduce:
1. Enable the dynamic behavior of the plugins:
# dsconf -D "cn=Directory Manager" ldap://localhost:10389 config replace nsslapd-dynamic-plugins=on
Enter password for cn=Directory Manager on ldap://localhost:10389:
Successfully replaced "nsslapd-dynamic-plugins"
#

# dsconf -D "cn=Directory Manager" ldap://localhost:10389 config get  nsslapd-dynamic-plugins
Enter password for cn=Directory Manager on ldap://localhost:10389:
nsslapd-dynamic-plugins: on
#

2. Try to enable the Pass Through Authentication plugin:
# dsconf -D "cn=Directory Manager" ldap://localhost:10389 plugin pass-through-auth enable
Enter password for cn=Directory Manager on ldap://localhost:10389:
Error: Server is unwilling to perform - Failed to start plugin "Pass Through Authentication".  See errors log.
#

3. The first step in the documentation is to enable the plugin:
    https://access.redhat.com/documentation/en-us/red_hat_directory_server/11/html/administration_guide/using_the_pass_through_authentication_plug_in

But since the configuration is not complete yet, the dynamic reloading is triggering an error.
From the errors log:
=========================================================
[08/Apr/2021:12:59:27.459036702 +0200] - ERR - passthru-plugin - passthru_config - No pass through servers found in configuration (at least one must be listed)
[08/Apr/2021:12:59:27.461409111 +0200] - ERR - passthru-plugin - passthru_bindpreop_start - Configuration failed (Bad parameter to an ldap routine)
[08/Apr/2021:12:59:27.463601582 +0200] - ERR - plugin_start - Failed to start preoperation plugin Pass Through Authentication
=========================================================

Actual results:
Failing to enable the PTA plugin.

Expected results:
Enable successfully the PTA plugin.

Additional info:

Comment 1 mreynolds 2021-04-08 14:49:03 UTC
Yeah the plugin needs to be properly configured before starting it.  But looks like that fails too https://bugzilla.redhat.com/show_bug.cgi?id=1947469.  Once 1947469 is fixed, this should go away once the order in the docs is switched from:

# dsconf -D "cn=Directory Manager" ldap://userdir.example.com plugin pass-through-auth enable
# dsconf -D "cn=Directory Manager" ldap://userdir.example.com plugin pass-through-auth url add "ldap://authdir.example.com/o=RedHat"


to:

# dsconf -D "cn=Directory Manager" ldap://userdir.example.com plugin pass-through-auth url add "ldap://authdir.example.com/o=RedHat"
# dsconf -D "cn=Directory Manager" ldap://userdir.example.com plugin pass-through-auth enable

Comment 2 Petr Čech 2022-05-24 14:10:34 UTC

*** This bug has been marked as a duplicate of bug 1947469 ***