When doing add/modify operation in order to update a replica config one may get different return codes for the same refusal reason.
389-ds-base-1.3.7.5-18.el7.x86_64
[root@qeos-34 upstream]# ldapmodify -h localhost -p 39001 -D "cn=Directory manager" -w password << EOF > dn: cn=replica,cn=dc\3Dexample\2Cdc\3Dcom,cn=mapping tree,cn=config > changetype: modify > replace: nsDS5ReplicaId > nsDS5ReplicaId: 65535 > EOF modifying entry "cn=replica,cn=dc\3Dexample\2Cdc\3Dcom,cn=mapping tree,cn=config" ldap_modify: Server is unwilling to perform (53) additional info: Attribute nsDS5ReplicaId value (65535) is invalid, must be a number between 1 and 65534.
[root@qeos-34 upstream]# ldapmodify -a -h localhost -p 389 -D "cn=Directory manager" -w Secret123 << EOF > dn: cn=replica,cn=dc\3Dexample\2Cdc\3Dcom,cn=mapping tree,cn=config > cn: replica > nsDS5Flags: 1 > nsDS5ReplicaBindDN: cn=sync user,cn=config > nsDS5ReplicaId: 65535 > nsDS5ReplicaRoot: dc=example,dc=com > nsDS5ReplicaType: 3 > objectClass: top > objectClass: nsDS5Replica > objectClass: extensibleobject > EOF adding new entry "cn=replica,cn=dc\3Dexample\2Cdc\3Dcom,cn=mapping tree,cn=config" ldap_add: Operations error (1) additional info: Attribute nsDS5ReplicaId value (65535) is invalid, must be a number between 1 and 65534.
In above two operations we have two different return codes - ldap_modify: Server is unwilling to perform (53) and ldap_add: Operations error (1) , For the same type of error.
Error codes should be same for same error
Metadata Update from @mhonek: - Custom field origin adjusted to QE - Custom field reviewstatus adjusted to None - Custom field rhbz adjusted to https://bugzilla.redhat.com/show_bug.cgi?id=1546739
Commit 9bf0fc2 fixes this issue
Cherry-picked to 389-ds-base-1.3.9 as ed41355.
Metadata Update from @mhonek: - Issue close_status updated to: None (was: Fixed)
389-ds-base is moving from Pagure to Github. This means that new issues and pull requests will be accepted only in 389-ds-base's github repository.
This issue has been cloned to Github and is available here: - https://github.com/389ds/389-ds-base/issues/3531
If you want to receive further updates on the issue, please navigate to the github issue and click on subscribe button.
subscribe
Thank you for understanding. We apologize for all inconvenience.
Metadata Update from @spichugi: - Issue close_status updated to: wontfix
Login to comment on this ticket.