【问题标题】:How to enable WebLogic digest authentication with WLST如何使用 WLST 启用 WebLogic 摘要身份验证
【发布时间】:2018-07-31 10:24:28
【问题描述】:

是否可以使用 WLST 脚本或其他自动化方式启用 WebLogic 摘要式身份验证?

我正在使用official Oracle WebLogic docker images,并在映像构建期间使用 WLST 脚本对其进行配置。但是,我找不到使用 WLST 启用摘要密码的方法。此外,在管理控制台上手动启用它需要重新启动,这实际上会破坏容器,因为 WebLogic 进程是入口点。

如何在映像构建期间自动启用摘要?

【问题讨论】:

    标签: docker weblogic digest wlst


    【解决方案1】:

    我将向您展示在线模式命令,您可以轻松地将它们转换为脚本。

    只需确保在命令中替换用户名/密码和您的域名即可。

    connect('weblogicUser','weblogicPassword','t3://localhost:7001')
    edit()
    cd ('SecurityConfiguration/replace_your_domain_name_here/Realms/myrealm/AuthenticationProviders/DefaultAuthenticator')
    startEdit()
    set('PasswordDigestEnabled','true')
    save()
    stopEdit()
    exit()
    

    【讨论】:

    • 这不起作用。抛出以下异常:The requested attribute is not exposed through JMX: setPasswordDigestEnabled: Attribute is readonly. : Security:Name=myrealmDefaultAuthenticator:PasswordDigestEnabled
    • @TuomasToivonen 您是否进行了 edit() 和 startEdit() ?这意味着锁定和编辑不起作用。
    • @TuomasToivonen 确保您标记为答案,以便我们可以帮助其他人。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2020-01-21
    • 2013-08-29
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2012-11-10
    • 2011-05-20
    相关资源
    最近更新 更多