启动WAS 6.1时无法从CustomRegistry检索实际凭据

时间:2016-11-08 06:23:01

标签: websphere jaas

我在尝试启动Web Sphere时遇到身份验证问题,即使我使用了正确的凭据。 为启动应用程序,我们配置了Custom Registry以启用登录模块安全性。以下是Appserver / profiles / profile1 / config / cells / ### Node02Cell / security.xml

中Security.xml中的配置
<userRegistries xmi:type="security:CustomUserRegistry" xmi:id="CustomUserRegistry_1" serverId="Admin" serverPassword="{xor}xxxxx" realm="customRealm" limit="0" ignoreCase="false" useRegistryServerId="true" primaryAdminId="" customRegistryClassName="com.s1.arch.security.realm.websphere.GenericRegistry"/>

及以下是配置的登录模块

<systemLoginConfig>
<loginModules xmi:id="JAASLoginModule_1264755872404" moduleClassName="com.ibm.ws.security.server.lm.ltpaLoginModule" >
        <options xmi:id="Property_1264755872888" name="cookie" value="true" required="true"/>
        </loginModules>
    <loginModules xmi:id="JAASLoginModule_1264755873404" moduleClassName="com.ibm.ws.security.server.lm.wsMapDefaultInboundLoginModule" >
        <options xmi:id="Property_1264755874013" name="cookie" value="true" required="true"/>
        </loginModules>
</SystemloginConfig>

以下是错误详情。

无法获得实际凭据

Caused by: com.ibm.websphere.security.WSSecurityException
    at com.ibm.ws.security.auth.ContextManagerImpl.getServerSubjectInternal(ContextManagerImpl.java:2212)
    at com.ibm.ws.security.auth.ContextManagerImpl.getServerSubjectInternal(ContextManagerImpl.java:1972)
    at com.ibm.ws.security.auth.ContextManagerImpl.initialize(ContextManagerImpl.java:2530)
    ... 37 more
Caused by: com.ibm.websphere.security.auth.WSLoginFailedException
    at com.ibm.ws.security.ltpa.LTPAServerObject.authenticate(LTPAServerObject.java:800)
    at com.ibm.ws.security.server.lm.ltpaLoginModule.login(ltpaLoginModule.java:453)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:79)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:618)
    at javax.security.auth.login.LoginContext.invoke(LoginContext.java:795)
    at javax.security.auth.login.LoginContext.access$000(LoginContext.java:209)
    at javax.security.auth.login.LoginContext$4.run(LoginContext.java:709)
    at java.security.AccessController.doPrivileged(AccessController.java:246)
    at javax.security.auth.login.LoginContext.invokePriv(LoginContext.java:706)
    at javax.security.auth.login.LoginContext.login(LoginContext.java:603)
    at com.ibm.ws.security.auth.JaasLoginHelper.jaas_login(JaasLoginHelper.java:376)
    at com.ibm.ws.security.auth.ContextManagerImpl.login(ContextManagerImpl.java:3513)
    at com.ibm.ws.security.auth.ContextManagerImpl.login(ContextManagerImpl.java:3306)
    at com.ibm.ws.security.auth.ContextManagerImpl.login(ContextManagerImpl.java:3086)
    at com.ibm.ws.security.auth.ContextManagerImpl.getServerSubjectInternal(ContextManagerImpl.java:2180)
    ... 39 more
Caused by: com.ibm.websphere.security.PasswordCheckFailedException
    at com.s1.arch.security.realm.websphere.GenericRegistry.checkPassword(GenericRegistry.java:40)
    at com.ibm.ws.security.registry.UserRegistryImpl.checkPassword(UserRegistryImpl.java:309)
    at com.ibm.ws.security.ltpa.LTPAServerObject.authenticate(LTPAServerObject.java:775)

作为一种解决方法,我跳过了这个安全配置,然后我能够在没有任何问题的情况下启动服务器并安装了我的应用程序。但是在尝试从应用程序登录页面登录时,我遇到了问题。

未找到登录模块

0 个答案:

没有答案