Weblogic 11g创建新用户异常
我正在尝试在 WebLogic 11g 安全领域中创建新用户。
InitialContext ctx = new InitialContext(env);
wls = (MBeanServer) ctx.lookup("java:comp/env/jmx/runtime");
//userEditor is SqlAuthenticator provider.
wls.invoke(userEditor, "addMemberToGroup", new Object[] { groupName, username}, new String[] {"java.lang.String", "java.lang.String"});
在执行此操作时,我遇到以下异常:
javax.management.MBeanException: MBean invoke failed: weblogic.management.utils.InvalidParameterException: 1. [Security:099069]The password length can not be less than 8.
2. [Security:099113]The number of numeric or special characters in a password can not be less than 1.
我的问题是我在 webLogic 11G 控制台中找不到任何选项来设置 SqlAuthenticator 提供程序的密码复杂性。有什么办法可以改变吗?
I'm trying to create new user in WebLogic 11g security realm.
InitialContext ctx = new InitialContext(env);
wls = (MBeanServer) ctx.lookup("java:comp/env/jmx/runtime");
//userEditor is SqlAuthenticator provider.
wls.invoke(userEditor, "addMemberToGroup", new Object[] { groupName, username}, new String[] {"java.lang.String", "java.lang.String"});
while doing it I'm getting the following exception:
javax.management.MBeanException: MBean invoke failed: weblogic.management.utils.InvalidParameterException: 1. [Security:099069]The password length can not be less than 8.
2. [Security:099113]The number of numeric or special characters in a password can not be less than 1.
My problem is that I can't find any option in webLogic 11G console to set password complexity for SqlAuthenticator provider. Is there any way to change it?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
现在它实际上是在密码验证提供程序级别设置的,而不是在特定身份验证提供程序级别设置的,这是有道理的 - 您要求全面降低复杂性的最低级别。
您可以在此处查看配置的位置:
http://www.screencast.com/users/kevinpowe/folders/Jing/media/3543eb50-d7c1-4070-8273-c122ae1adecd
如果您点击主页上的链接,您将直接进入您可以在该页面中配置有关复杂性的选项 - 数字、小写字符、大写字符等。
It's actually set at the Password Validation provider level now, rather than at the specific authentication provider level, which makes sense - you're mandating a minimum level of complexity across the board.
You can see where the configuration is here:
http://www.screencast.com/users/kevinpowe/folders/Jing/media/3543eb50-d7c1-4070-8273-c122ae1adecd
If you click the link on the main page there, that takes you straight to the page where you can configure the options regarding complexity - numbers, lowercase chars, uppercase chars, etc.