如何编写脚本以使用WLST将最小密码长度更改为4个字符
主页>凭据映射>用户和群组> weblogic>用户和群组>安全领域摘要> myrealm>提供商> DefaultAuthenticator> ProviderSpecific
如何使用weblogic脚本WLST找到相应的mbeans信息来修改它?
答案 0 :(得分:0)
如果您知道路径,则可以导航到所需的MBEan并按照此处所述编辑属性
http://download.oracle.com/docs/cd/E13222_01/wls/docs100/config_scripting/nav_edit.html#wp1005462
答案 1 :(得分:0)
迟到但这应该可以解决问题...
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()
显然,需要调整域名,域名和验证者名称以适应您的环境。