在XMPP中验证密码失败?

时间:2014-11-05 05:15:32

标签: ios xmpp

使用github.com/robbiehanson中的示例iPhoneXMPP应用程序连接到我的公司服务器,然后验证失败:

- (void)xmppStreamDidConnect:(XMPPStream *)sender{
    NSLog(@"connected --->YES");
    isOpen = YES;
    NSError *error = nil;
    [xmppStream authenticateWithPassword:@"password" error:&error];
}

返回错误: Domain = XMPPStreamErrorDomain Code = 4"找不到合适的身份验证方法" UserInfo = 0x9b61440 {NSLocalizedDescription =找不到合适的身份验证方法}

username可以是nikename或phoneNumber,不能像name@example.com一样完整

1 个答案:

答案 0 :(得分:0)

我已通过在openfire中删除系统属性中的sasl.mechs解决了问题。

有关详细信息,您可以通过以下链接在github上查询我的问题:https://github.com/robbiehanson/XMPPFramework/issues/576