#436 nsds5ReplicaEnabled can be set with any invalid values.
Closed: Fixed None Opened 7 years ago by rmeggins.

https://bugzilla.redhat.com/show_bug.cgi?id=850683 (Red Hat Enterprise Linux 6)

Description of problem:
nsds5ReplicaEnabled attribute accepting the invalid values

Version-Release number of selected component (if applicable):
389-ds-base-1.2.11.7-2.el6.x86_64

How reproducible:
Always

Steps to Reproduce:
I have checked in my changes to SVN TET fourwaymmr.sh.
Also, I have manually tested that this attribute "nsds5ReplicaEnabled"
is accepting any value be it digits or anything. It should only take ON/OFF.

====================================================================
----------------- Starting Test bug834074_08 -------------------------
====================================================================
Changing the value of nsds5ReplicaEnabled to some invalid value on M1
Modify nsds5ReplicaEnabled's value to invalid on Master M1
modifying entry cn=M1_to_M2,cn=replica,cn="dc=example,dc=com",cn=mapping
tree,cn=config

bug834074_07: Able to modify nsds5ReplicaEnabled to invalid : FAIL (0)
TestCase [bug834074_08] result-> [FAIL]
====================================================================


[root@dhcp201-134 fourwaymmr]# ldapmodify -x -D "cn=directory manager"
-w *** -p 30100 -h localhost << EOF
> > dn: cn=M1_to_M2,cn=replica,cn="dc=example,dc=com",cn=mapping
tree,cn=config
> > changetype: modify
> > replace: nsds5ReplicaEnabled
> > nsds5ReplicaEnabled: invalid
> > EOF
modifying entry
"cn=M1_to_M2,cn=replica,cn="dc=example,dc=com",cn=mapping tree,cn=config"

[root@dhcp201-134 fourwaymmr]# ldapmodify -x -D "cn=directory manager"
-w *** -p 30100 -h localhost << EOF
dn: cn=M1_to_M2,cn=replica,cn="dc=example,dc=com",cn=mapping tree,cn=config
changetype: modify
replace: nsds5ReplicaEnabled
nsds5ReplicaEnabled: invalsadsa689id
EOF

modifying entry
"cn=M1_to_M2,cn=replica,cn="dc=example,dc=com",cn=mapping tree,cn=config"

[root@dhcp201-134 fourwaymmr]# ldapmodify -x -D "cn=directory manager"
-w *** -p 30100 -h localhost << EOF
dn: cn=M1_to_M2,cn=replica,cn="dc=example,dc=com",cn=mapping tree,cn=config
changetype: modify
replace: nsds5ReplicaEnabled
nsds5ReplicaEnabled: 0
EOF

modifying entry
"cn=M1_to_M2,cn=replica,cn="dc=example,dc=com",cn=mapping tree,cn=config"

git merge ticket436
Updating 3dcca62..ef63c61
Fast-forward

ldap/servers/plugins/replication/repl5.h | 2 +-
ldap/servers/plugins/replication/repl5_agmt.c | 16 +++++++++++++---
ldap/servers/plugins/replication/repl5_agmtlist.c | 2 +-
3 files changed, 15 insertions(+), 5 deletions(-)

git push origin master
Counting objects: 17, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (9/9), done.
Writing objects: 100% (9/9), 1.28 KiB, done.
Total 9 (delta 7), reused 0 (delta 0)
To ​ssh://git.fedorahosted.org/git/389/ds.git

3dcca62..ef63c61 master -> master

Metadata Update from @mreynolds:
- Issue assigned to mreynolds
- Issue set to the milestone: 1.2.11.12

2 years ago

Login to comment on this ticket.

Metadata