Sun logo      上一个      目录      索引      下一个     

Sun ONE Identity Server 6.1 管理指南

第 13 章
ampassword 命令行工具

本章介绍有关 amPassword 命令行工具的信息,包含以下内容:


ampassword 命令行可执行文件

Identity Server 包含一个 ampassword 实用程序,该实用程序位于 $installroot/SUNWam/bin 下。该实用程序允许您更改管理员或用户的 Identity Server 密码。

ampassword 语法

使用 ampassword 工具的通用语法为:

ampassword -a | --admin [ -o | --old oldPassword -n | --new newPassword ]

ampassword -p | --proxy [ -o | --old oldPassword -n | --new newPassword ]

ampassword -e | --encrypt [ password ]


必须完全按照语法中所示,输入两个连字符。


ampassword 选项

--admin (-a)

--admin 用于更改管理密码。

--proxy (-p)

--proxy 用于更改代理服务器密码。该选项与代理服务器用户(serverconfig.xml 中用户类型为 proxy)相对应。

--encrypt (-e)

--encrypt 用于加密密码。该选项被打印到命令行。


在 SSL 上运行 ampassword

要使用在安全套接字层 (SSL) 模式中运行的 Identity Server 运行 ampassword,请执行以下步骤:

  1. 修改位于以下目录的 serverconfig.xml 文件:
  2. IdentityServer_base/SUNWam/config/ums

  3. 将服务器属性 port 更改为运行 Identity Server 的 SSL 端口。
  4. type 属性更改为 SSL。
  5. 例如:

    <iPlanetDataAccessLayer>

    <ServerGroup name="default" minConnPool="1" maxConnPool="10">

        <Server name="Server1" host="sun.com" port="636" type="SSL" />

        <User name="User1" type="proxy">

            <DirDN>

                    cn=puser,ou=DSAME Users,dc=iplanet,dc=com

            </DirDN>

           <DirPassword>

                      AQIC5wM2LY4Sfcy+AQBQxghVwhBE92i78cqf

             </DirPassword>

    </User> ...

ampassword 只更改 Directory Server 中的密码。您必须手动更改 ServerConfig.xml 和 Identity Server 的所有验证模板中的密码。



上一个      目录      索引      下一个     


版权所有 2003 Sun Microsystems, Inc.。保留所有权利。