If your site implements HTTP proxy authentication, you must also configure HTTP proxy authentication settings (user name and password). The password must be specified as a single line in a text file and then passed to the regadm command. The following procedure describes how to protect the password file while it is in use. This file should be removed immediately after running the regadm command.
The regadm command accepts a password file in two cases:
When you are setting a user name and password by using the regadm auth command.
When you are setting the HTTP proxy user name and password by using the regadm set command.
Become superuser or assume an equivalent role.
Set the HTTP proxy user name.
# regadm set -n http_proxy_user -v webuser |
where webuser is the site-supplied value to use for authenticating a user with the HTTP proxy server.
Create a temporary password file.
# touch pwfile |
Secure permissions on the file.
# chmod 600 pwfile |
Using a text editor, edit the temporary password file to insert a one-line entry that contains your password information.
Set the HTTP password authentication information.
# regadm set -n http_proxy_pw -v pwfile |
where pwfile is the password file that you created in Step 3.
Remove the password file.
# rm pwfile |
The following example shows how to configure the HTTP authentication properties for a site that requires an HTTP user name and password for authentication purposes.
# regadm set -n http_proxy_user -v webuser # touch myhttppasswd # chmod 600 myhttppasswd # vi myhttppasswd . . . # regadm set -n http_proxy_pw -v myhttppasswd # rm myhttppasswd |
To switch network connectivity to a direct connection, you must set all of the HTTP proxy settings to a null value (not configured), as shown in the following example:
# regadm set -n http_proxy "" # regadm set -n http_proxy_port "" # regadm set -n http_proxy_user "" # regadm set -n http_proxy_pw "" # regadm list My Oracle Support username <not configured> HTTP Proxy <not configured> HTTP proxy port <not configured> HTTP proxy user <not configured> HTTP proxy password <not configured> |