RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1998464 - LDAP server crashes when dnaInterval attribute is set to 0
Summary: LDAP server crashes when dnaInterval attribute is set to 0
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Linux 9
Classification: Red Hat
Component: 389-ds-base
Version: 9.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: beta
: ---
Assignee: mreynolds
QA Contact: RHDS QE
URL:
Whiteboard:
Depends On: 1997138
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-08-27 09:58 UTC by sgouvern
Modified: 2021-12-07 21:26 UTC (History)
4 users (show)

Fixed In Version: 389-ds-base-2.0.8-2.el9
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-12-07 21:24:13 UTC
Type: ---
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker IDMDS-1583 0 None None None 2021-08-27 10:00:49 UTC
Red Hat Issue Tracker IDMDS-1584 0 None None None 2021-08-27 13:06:56 UTC
Red Hat Issue Tracker RHELPLAN-95414 0 None None None 2021-08-27 09:59:33 UTC

Description sgouvern 2021-08-27 09:58:57 UTC

Comment 4 Akshay Adhikari 2021-08-30 12:25:49 UTC
Build tested: 389-ds-base-2.0.8-2.el9.x86_64

[root@localhost ~]# dsconf -D "cn=Directory Manager" -w password ldap://localhost plugin dna config "dna config" add --type uidNumber --filter "(objectclass=top)" --scope ou=People,dc=example,dc=com --next-value 10 --interval 10 --max-value 1000 --magic-regen -1
Successfully created the cn=dna config,cn=Distributed Numeric Assignment Plugin,cn=plugins,cn=config

[root@localhost ~]# dsconf -D "cn=Directory Manager" -w password ldap://localhost plugin dna enable
Enabled plugin 'Distributed Numeric Assignment Plugin'

[root@localhost ~]# dsctl localhost restart
Instance "localhost" has been restarted

[root@localhost ~]# dsconf -D "cn=Directory Manager" -w password ldap://localhost plugin dna config "dna config" set --interval 0
Error: -1 - Can't contact LDAP server - []

Marking as FailedQA.

Comment 6 mreynolds 2021-08-30 14:52:51 UTC
There was a problem with the specfile and the patch for this was not properly applied.  Creating new build...

Comment 7 sgouvern 2021-08-30 16:43:40 UTC
With the new build : 389-ds-base-2.0.8-4.el9.x86_64 

# dsconf -D "cn=Directory Manager" -w password inst1 plugin dna config "dna config" add --type uidNumber --filter "(objectclass=top)" --scope ou=People,dc=example,dc=com --next-value 10 --interval 10 --max-value 1000 --magic-regen -1
Successfully created the cn=dna config,cn=Distributed Numeric Assignment Plugin,cn=plugins,cn=config

# dsconf -D "cn=Directory Manager" -w password inst1 plugin dna enable
Enabled plugin 'Distributed Numeric Assignment Plugin'

# dsctl inst1 restart
Instance "inst1" has been restarted

# ldapmodify -x -p 1389 -h localhost -D "cn=Directory Manager" -w password << EOF
dn: cn=dna config,cn=Distributed Numeric Assignment Plugin,cn=plugins,cn=config
changetype: modify
replace: dnaInterval
dnaInterval: 0
EOF
modifying entry "cn=dna config,cn=Distributed Numeric Assignment Plugin,cn=plugins,cn=config"

The server did not crash, and a warning message is displayed in the errors log :
[30/Aug/2021:12:34:37.604044582 -0400] - WARN - dna-plugin - dna_parse_config_entry - Invalid value for dnaInterval (0), Using default value of 1

Marking as verified:tested

Comment 8 sgouvern 2021-08-30 19:32:23 UTC
As per comment 7, moving to VERIFIED


Note You need to log in before you can comment on or make changes to this bug.