2012-10-30 181 views
1

我无法实现多因素身份验证。wso2身份服务器多因素身份验证错误

我得到的错误是

TID: [0] [WSO2 Identity Server] [2012-10-30 10:31:38,620] ERROR  {org.wso2.carbon.identity.provider.xmpp.MPAuthenticationProvider} - login failed. Trying  again.. {org.wso2.carbon.identity.provider.xmpp.MPAuthenticationProvider} 
SASL authentication failed: 
    at org.jivesoftware.smack.SASLAuthentication.authenticate (SASLAuthentication.java:209) 
    at org.jivesoftware.smack.XMPPConnection.login(XMPPConnection.java:341) 
    at org.jivesoftware.smack.XMPPConnection.login(XMPPConnection.java:301) 

这是WSO2的Identity Server 3.2.3。开箱即用。没有执行额外的配置来运行此Identity Server实例。

似乎以管理员身份登录,ldap身份验证已完成,然后在发生错误时尝试使用gtalk进行身份验证。

我应该在正在设置gtalk的identity.xml中设置自己的配置吗?

<MultifactorAuthentication> 

    <XMPPSettings> 

     <XMPPConfig> 

      <XMPPProvider>gtalk</XMPPProvider> 

      <XMPPServer>talk.google.com</XMPPServer> 

      <XMPPPort>5222</XMPPPort> 

      <XMPPExt>gmail.com</XMPPExt> 

      <XMPPUserName>[email protected]</XMPPUserName> 

      <XMPPPassword>wso2carbon</XMPPPassword> 

     </XMPPConfig> 

    </XMPPSettings> 

</MultifactorAuthentication> 

回答

1

我发现我确实需要设置一个Google Talk帐户。

1)我将新设置添加到MultifactorAuthentication配置中。
2)我重新启动了服务器。
3)我编辑了另一个新的谷歌谈话帐户的用户帐户。
4)我退出了。
5)使用openid通过relyingparty url重新登录,
6)通过gtalk请求引脚接收到通信。
7)我输入的PIN码,并得到了登录。

这本来是很好,如果WSO2有我自己的文件需要安装设置此配置,以获得多因素身份验证工作开箱。

希望这可以帮助任何人遇到同样的困难。