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
Comments
mreynolds389
added
In JIRA
ticket is in JIRA
and removed
needs triage
The issue will be triaged during scrum
labels
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!)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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
dsconf -D "cn=Directory Manager" -w password ldap://localhost plugin dna enable
dsctl restart
ldapmodify -x -p 389 -h
hostname
-D "cn=Directory Manager" -w password << EOFdn: 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)
The text was updated successfully, but these errors were encountered: