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

LDAP server crashes when dnaInterval attribute is set to 0 #4884

Closed
mreynolds389 opened this issue Aug 25, 2021 · 1 comment
Closed

LDAP server crashes when dnaInterval attribute is set to 0 #4884

mreynolds389 opened this issue Aug 25, 2021 · 1 comment
Assignees
Labels
In JIRA ticket is in JIRA
Milestone

Comments

@mreynolds389
Copy link
Contributor

Issue Description

LDAP server crashes when dnaInterval attribute is set to 0

Steps to Reproduce

1.Add DNA plugin config entry

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

  1. Enable DNA plugin and restart the server

dsconf -D "cn=Directory Manager" -w password ldap://localhost plugin dna enable

dsctl restart

  1. Set the dnaInterval to 0

ldapmodify -x -p 389 -h hostname -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"
ldap_result: Can't contact LDAP server (-1)

@mreynolds389 mreynolds389 added the needs triage The issue will be triaged during scrum label Aug 25, 2021
@mreynolds389 mreynolds389 self-assigned this Aug 25, 2021
@mreynolds389 mreynolds389 added In JIRA ticket is in JIRA and removed needs triage The issue will be triaged during scrum labels Aug 25, 2021
@mreynolds389 mreynolds389 added this to the 1.4.3 milestone Aug 25, 2021
mreynolds389 added a commit to mreynolds389/389-ds-base that referenced this issue Aug 26, 2021
Bug Description:

A division by zero crash occurs if the dnaInterval is set to zero

Fix Description:

Validate the config value of dnaInterval and adjust it to the
default/safe value of "1" if needed.

relates: 389ds#4884

Reviewed by: tbordaz(Thanks!)
mreynolds389 added a commit that referenced this issue Aug 26, 2021
Bug Description:

A division by zero crash occurs if the dnaInterval is set to zero

Fix Description:

Validate the config value of dnaInterval and adjust it to the
default/safe value of "1" if needed.

relates: #4884

Reviewed by: tbordaz(Thanks!)
mreynolds389 added a commit that referenced this issue Aug 26, 2021
Bug Description:

A division by zero crash occurs if the dnaInterval is set to zero

Fix Description:

Validate the config value of dnaInterval and adjust it to the
default/safe value of "1" if needed.

relates: #4884

Reviewed by: tbordaz(Thanks!)
mreynolds389 added a commit that referenced this issue Aug 26, 2021
Bug Description:

A division by zero crash occurs if the dnaInterval is set to zero

Fix Description:

Validate the config value of dnaInterval and adjust it to the
default/safe value of "1" if needed.

relates: #4884

Reviewed by: tbordaz(Thanks!)
mreynolds389 added a commit that referenced this issue Aug 26, 2021
Bug Description:

A division by zero crash occurs if the dnaInterval is set to zero

Fix Description:

Validate the config value of dnaInterval and adjust it to the
default/safe value of "1" if needed.

relates: #4884

Reviewed by: tbordaz(Thanks!)
@mreynolds389
Copy link
Contributor Author

553f26c..6e21d41 389-ds-base-2.0 -> 389-ds-base-2.0
1612466..38e1e26 389-ds-base-1.4.4 -> 389-ds-base-1.4.4
354e061..a9c4884 389-ds-base-1.4.3 -> 389-ds-base-1.4.3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
In JIRA ticket is in JIRA
Projects
None yet
Development

No branches or pull requests

1 participant