文档章节

pmpasswd

LianyouCQ
 LianyouCQ
发布于 2014/07/21 11:21
字数 358
阅读 73
收藏 0

Encrypting Passwords

Command Line Programs:

infacmd

infasetup

pmcmd

pmrep

You can encrypt passwords to create an environment variable to use with infacmd, infasetup, pmcmd, and pmrep or to define a password in a parameter file. For example, you can encrypt the repository and database passwords for pmrep to maintain security when using pmrep in scripts. Then you can create an environment variable to store the encrypted password. Or, you can define a password for a relational database connection object in a parameter file.

Use the command line program pmpasswd to encrypt passwords. The pmpasswd utility installs in the following directory:

<InformaticaInstallationDir>/server/bin

The pmpasswd utility uses the following syntax:

pmpasswd <password> [-e (CRYPT_DATA | CRYPT_SYSTEM)]

The following table describes pmpasswd options and arguments:

Option

Argument

Description

n/a

password

Required. The password to encrypt.

-e

CRYPT_DATA,

CRYPT_SYSTEM

Optional. Encryption type:

CRYPT_DATA. Use to encrypt connection object passwords that you define in a parameter file.

CRYPT_SYSTEM. Use for all other passwords.

Default is CRYPT_SYSTEM.

Using a Password as an Environment Variable

Use the following steps as a guideline to use an encrypted password as an environment variable:

1.

Use the command line program pmpasswd to encrypt the password.

pmpasswd generates and displays the encrypted password. For example, if you enter the password “monday,” the password encrypts to f/wRb5PZsZnqESTDPeos7Q==.

2.

Configure the password environment variable to set the encrypted value.

Configuring a Password as an Environment Variable on UNIX

To configure a password as an environment variable on UNIX:

1.

At the command line, type:

pmpasswd <password>

pmpasswd returns the encrypted password.

2.

In a UNIX C shell environment, type:

setenv <Password_Environment_Variable> <encrypted password>

In a UNIX Bourne shell environment, type:

<Password_Environment_Variable> = <encrypted password> export <Password_Environment_Variable>

You can assign the environment variable any valid UNIX name.

Configuring a Password as an Environment Variable on Windows

To configure a password as an environment variable on Windows:

1.

At the command line, type:

pmpasswd <password>

pmpasswd returns the encrypted password.

2.

Enter the password environment variable in the Variable field. Enter the encrypted password in the Value field.

For information about setting environment variables on Windows, consult the Windows documentation.

© 著作权归作者所有

共有 人打赏支持
LianyouCQ

LianyouCQ

粉丝 58
博文 92
码字总数 51532
作品 0
沙坪坝
程序员

暂无文章

区块链10年了,还未落地,它失败了吗?

导读 几乎每个人,甚至是对通证持怀疑态度的人,都对区块链的技术有积极的看法,因为它有可能改变世界。然而,区块链技术问世已经10年了,我们仍然没有真正的用上区块链技术。 几乎每个人,甚...

问题终结者
15分钟前
0
0
20180921 su与sudo命令、限制root用户通过ssh远程登录

su 命令 用户切换。 su # 切换到root用户su username # 切换到username用户# su 后面加-时,会初始化当前用户的各种环境su - username # 指定用户执行某些命令 su - -c "touch /tm...

野雪球
29分钟前
1
0
Windows 下双 Python 开发环境配置

Windows 下双 Python 开发环境配置作者:老农民(刘启华)QQ: 46715422Email: 46715422@qq.com微信: 46715422 本人曾经在 Windows 下被两个版本环境折腾够呛,现在总结两个 Python...

新疆老农民
昨天
2
0
CentOS7全局安装composer

1. 下载composer-setup.php到当前目录 php -r "copy('https://install.phpcomposer.com/installer', 'composer-setup.php');" 2. 安装 php composer-setup.php 3. 将composer设置成全局 mv c......

月夜中徘徊
昨天
2
0
20180920上课截图

小丑鱼00
昨天
1
0

没有更多内容

加载失败,请刷新页面

加载更多

返回顶部
顶部