This example assumes a replication configuration with replication servers on two hosts, host1 and host2. The example makes the replication server on host2 a read-only replica. The example uses the dsconfig command, which accesses the server configuration via the administration connector. For more information, see Managing Administration Traffic to the Server.
$ dsconfig -h host2 -p 4444 -D "cn=Directory Manager" -w password -X -n \ set-global-configuration-prop --set writability-mode:internal-only
A writability mode of internal-only means that replication operations are processed on the server, but the server is not writeable directly by LDAP client applications.