REMOTE_SERVER_CFG configuration parameter
Use the REMOTE_SERVER_CFG configuration parameter to specify the file that lists trusted remote hosts.
- onconfig.std value
- Not set. The system hosts.equiv file is used.
- values
- File name. The path is assumed to be $INFORMIXDIR/etc.
Consider using the following naming convention:
The file that is specified by the REMOTE_SERVER_CFG configuration parameter must be in $INFORMIXDIR/etc.authfile.server_name
- takes effect
- After you edit your onconfig file and restart the database server.
Usage
For applications that connect to the database server as the root user, the REMOTE_SERVER_CFG configuration parameter is not applicable.
The format of the file that is specified by the REMOTE_SERVER_CFG configuration parameter is the same as the format of the system hosts.equiv file.
If the REMOTE_SERVER_CFG
configuration parameter is not set, and you run the SQL administration
API task() or admin() function
with the cdr add trustedhost argument, the database
server performs the following actions:
- The REMOTE_SERVER_CFG configuration parameter is set to authfile.DBSERVER.
- The authfile.DBSERVER file is created in $INFORMIXDIR/etc.
- The specified trusted-host information is added to $INFORMIXDIR/etc/authfile.DBSERVER.
- If the database server is part of a high-availability cluster, the trusted-host information is propagated to the trusted-host files of the other cluster servers.
Note: If the sqlhosts file of the database
server uses the
s=6
option, you must also set the
S6_USE_REMOTE_SERVER_CFG configuration parameter to 1
to
use the file specified REMOTE_SERVER_CFG configuration parameter.
Otherwise, the database server uses the system hosts.equiv file
instead of the file specified REMOTE_SERVER_CFG configuration parameter.