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 的所有認證範本中的密碼。



上一個      目錄      索引      下一個     


Copyright 2003 Sun Microsystems, Inc.。版權所有。