WAS:如何給WebSphere配置登錄用戶

  首先,註冊用戶表,以下方式可任選其一:
  1.“安全性->用戶註冊表->本地 OS”,設置和所在操作系統一樣的用戶名和密碼
  2.“安全性->用戶註冊表->LDAP”,設置與LDAP的連接
  3.“安全性->用戶註冊表->定製”,默認註冊表類爲:com.ibm.websphere.security.FileRegistrySample,使用它需要在“定製屬性”中設置兩個鍵值對:

   groupsFile=${PATH}\groups.props
   usersFile=${PATH}\users.props

   即groupsFile和usersFile兩個鍵分別映射groups.props文件的路徑和users.props文件的路徑
   
   groups.props 

    # Format:
    # name:gid:users:display name
    # where name   = groupId of the group
    #       gid    = uniqueId of the group
    #       users  = list of all the userIds that the group contains
    #       display name = a (optional) display name for the group.
    admins:567:bob:Administrative group
    operators:678:jay,ted,dave:Operators group
    users:789:jay,jeff,vikas,bobby:

  users.props 

 
    # Format:
    # name:passwd:uid:gids:display name
    # where name   = userId/userName of the user
    #       passwd = password of the user
    #       uid    = uniqueId of the user
    #       gid    = groupIds of the groups that the user belongs to
    #       display name = a (optional) display name for the user.
    bob:bob1:123:567:bob
    dave:dave1:234:678:
    jay:jay1:345:678,789:Jay-Jay
    ted:ted1:456:678:Teddy G
    jeff:jeff1:222:789:Jeff
    vikas:vikas1:333:789:vikas
    bobby:bobby1:444:789:

   groups.props文件和users.props文件的內容可在如下地址找到
   http://publib.boulder.ibm.com/infocenter/wasinfo/v5r1/index.jsp
   當然,也可以不用默認註冊表類,可以自己編寫,只要繼承com.ibm.websphere.security.UserRegistry接口就行。
   
   以上三種方式都要設置“服務器用戶標識”和“服務器用戶密碼”,意義就在於停止服務器時必須提供用戶名和密碼

stopServer server1 -user XXX -password XXX

   然後,添加控制檯用戶和控制檯組,控制檯用戶和控制檯組
  若採用1,則控制檯用戶和控制檯組在操作系統必須已有
  若採用3,則控制檯用戶和控制檯組必須已定製
 
  接着,在“安全性->全局安全性”中選中“已啓用”。選中“已啓用”後,默認選中“執行 Java 2 安全性”,取消選中“執行 Java 2 安全性”。

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章