Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/jquery-ui/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/search/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
登录匿名openfire_Openfire_Strophe - Fatal编程技术网

登录匿名openfire

登录匿名openfire,openfire,strophe,Openfire,Strophe,我接着说: 我将域作为用户名和密码设置为空。openfire属性xmpp.auth.anonymous=true 我尝试了很多配置,但都没有效果。我错过了什么 我使用主干线和下划线。这是我的密码 _.extend(Chat.prototype, Backbone.Events, { connect : function() { var self = this; this.connection = new Strophe.Connection

我接着说:

我将域作为用户名和密码设置为空。openfire属性xmpp.auth.anonymous=true

我尝试了很多配置,但都没有效果。我错过了什么

我使用主干线和下划线。这是我的密码

   _.extend(Chat.prototype, Backbone.Events, {
    connect : function() {
        var self = this;    
        this.connection = new Strophe.Connection(BOSH_SERVICE);
        this.connection.connect('brent029', null, function(status) {
            self.onConnect(status);   
        });
    },

    onConnect : function(status) {
        switch(status) {
            case Strophe.Status.CONNECTED:
                this.sendPresConference();
                break;
            default:
                break;
       }
    },


    sendPresConference : function(){
        this.connection.send(
            $pres({
                to : 'room@conference_service/nick'
            })
            .c('x',{ 
                xmlns : Strophe.NS.MUC 
            }).tree()
        );
    },             
我解决了

明火有一个属性sasl.mechs

这处房产的价值是“普通的”

我将值更改为“匿名,普通”


然后,我重新启动了openfire,现在工作正常。

我不明白为什么有人投票反对这个问题。我搜索了几个关于它的链接。他们所说的就是将域设置为用户,密码设置为空。我那样做了,但没有工作。然后,在openfire中选择xmpp.auth.anonymous。我说真的。但什么都不管用。