【问题标题】:WebLogic script for changing the minimum password length用于更改最小密码长度的 WebLogic 脚本
【发布时间】:2010-05-20 23:28:09
【问题描述】:

如何编写脚本以使用 WLST 将最小密码长度更改为 4 个字符

Home >Credential Mappings >Users and Groups >weblogic >Users and Groups >Summary of Security Realms >myrealm >Providers >DefaultAuthenticator>ProviderSpecific

如何使用 weblogic 脚本 WLST 找到适当的 mbeans 信息来修改它?

【问题讨论】:

    标签: weblogic-10.x wlst


    【解决方案1】:

    如果您知道路径,则可以导航到所需的 MBEan 并按照此处所述编辑属性

    http://download.oracle.com/docs/cd/E13222_01/wls/docs100/config_scripting/nav_edit.html#wp1005462

    【讨论】:

      【解决方案2】:

      有点晚了,但这应该可以解决问题...

      connect('weblogic','weblogic','t3://localhost:7001')
      domainRuntime()
      edit()
      cd('SecurityConfiguration/DefaultDomain/Realms/myrealm/AuthenticationProviders/DefaultAuthenticator')
      print cmo.getMinimumPasswordLength()
      startEdit()
      cmo.setMinimumPasswordLength(4)
      save()
      activate()
      print cmo.getMinimumPasswordLength()
      

      显然,需要调整域名、领域名称和身份验证器名称以适应您的环境。

      【讨论】:

        猜你喜欢
        • 2011-02-10
        • 1970-01-01
        • 1970-01-01
        • 2013-06-28
        • 2012-03-18
        • 2020-02-16
        • 1970-01-01
        • 2013-04-09
        • 2016-03-09
        相关资源
        最近更新 更多