Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
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

Summary: LDAP server crashes when dnaInterval attribute is set to 0
Product: Red Hat Enterprise Linux 9 Reporter: sgouvern
Component: 389-ds-baseAssignee: mreynolds
Status: CLOSED CURRENTRELEASE QA Contact: RHDS QE <ds-qe-bugs>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 9.0CC: aadhikar, ldap-maint, mreynolds, vashirov
Target Milestone: betaKeywords: Triaged
Target Release: ---Flags: pm-rhel: mirror+
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: 389-ds-base-2.0.8-2.el9 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-12-07 21:24:13 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: 1997138    
Bug Blocks:    

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