Description of problem: After setting a backend referral using "dsconf inst1 backend suffix set --add-referral", setting the backend state to referral with "dsconf inst1 backend suffix set --state referral" returns an error : Error: 103 - 9 - 53 - Server is unwilling to perform - [] - need to set nsslapd-referral before moving to referral state Version-Release number of selected component (if applicable): RHDS 12.0 How reproducible: always Steps to Reproduce: Run these steps : 1. # dsconf inst1 backend suffix set --add-referral ldap://localhost:2389/dc=example,dc=com 'dc=example,dc=com' The backend configuration was successfully updated 2. # dsconf inst1 backend suffix set --state referral userroot Actual results: Error: 103 - 9 - 53 - Server is unwilling to perform - [] - need to set nsslapd-referral before moving to referral state. The suffix can't be configured with referral. Expected results: Backend suffix state can be set to referral without error. Additional info: A workaround is to set nsslapd-referral in the mapping tree entry before running "dsconf inst1 backend suffix set --state referral" using ldapmodify : # ldapmodify -D "cn=directory manager" -w secret12 -h localhost -p 1389 dn: cn=dc\3Dexample\2Cdc\3Dcom,cn=mapping tree,cn=config changetype: modify add: nsslapd-referral nsslapd-referral: ldap://localhost:2389/dc=example,dc=com modifying entry "cn=dc\3Dexample\2Cdc\3Dcom,cn=mapping tree,cn=config" # dsconf inst1 backend suffix set --state referral 'dc=example,dc=com' The backend configuration was successfully updated
Also noticed: [root@fedora mareynol]# dsconf localhost backend suffix set --state referral userroot Error: 'BackendSuffixView' object has no attribute 'set_state'
*** Bug 2063140 has been marked as a duplicate of this bug. ***