Projects tigase _server server-core Issues #1374
Received roster request but user session is not authorized yet (#1374)
Unknown opened 5 years ago
Labels
help wanted

Describe the bug use ldap authorization login success ,but other component error

config.tdsl

authRepository {
    default () {
        cls = 'tigase.db.ldap.LdapAuthProvider'
        uri = 'ldap://localhost:389'
        'user-dn-pattern' = 'cn=%1$s,ou=test,dc=test-dc,dc=com'
    }
}

error describe

2020-01-03 13:38:36.207 [jabber:iq:private Queue Worker 1]  JabberIqPrivate.process()  WARNING: Received privacy request but user session is not authorized yet: from=c2s@localhost/127.0.0.1_5222_127.0.0.1_48980, to=sess-man@localhost, DATA=<iq from="kevin@im.com/Psi+" xmlns="jabber:client" type="get" id="aabaa">
<query xmlns="jabber:iq:private">
<roster xmlns="roster:delimiter"/>
</query>
</iq>, SIZE=164, XMLNS=jabber:client, PRIORITY=NORMAL, PERMISSION=AUTH, TYPE=get
2020-01-03 13:38:36.218 [jabber:iq:roster Queue Worker 9]  JabberIqRoster.process()  WARNING: Received roster request but user session is not authorized yet: from=c2s@localhost/127.0.0.1_5222_127.0.0.1_48980, to=sess-man@localhost, DATA=<iq from="kevin@im.com/Psi+" xmlns="jabber:client" type="get" id="aabba">
<query xmlns="jabber:iq:roster"/>
</iq>, SIZE=120, XMLNS=jabber:client, PRIORITY=NORMAL, PERMISSION=AUTH, TYPE=get
2020-01-03 13:38:36.244 [jabber:iq:private Queue Worker 1]  JabberIqPrivate.process()  WARNING: Received privacy request but user session is not authorized yet: from=c2s@localhost/127.0.0.1_5222_127.0.0.1_48980, to=sess-man@localhost, DATA=<iq from="kevin@im.com/Psi+" xmlns="jabber:client" type="get" id="aabea">
<query xmlns="jabber:iq:private">
<storage xmlns="storage:bookmarks"/>
</query>
</iq>, SIZE=166, XMLNS=jabber:client, PRIORITY=NORMAL, PERMISSION=AUTH, TYPE=get
2020-01-03 13:38:36.307 [vcard-temp Queue Worker 1]  VCardTemp.processFromUserToServerPacket()  WARNING: Received vCard request but user session is not authorized yet: from=c2s@localhost/127.0.0.1_5222_127.0.0.1_48980, to=sess-man@localhost, DATA=<iq from="kevin@im.com/Psi+" xmlns="jabber:client" type="get" id="aac1a" to="kevin@im.com">
<vCard xmlns="vcard-temp"/>
</iq>, SIZE=139, XMLNS=jabber:client, PRIORITY=NORMAL, PERMISSION=AUTH, TYPE=get
Unknown commented 5 years ago

@ChenAdminChen

  • Which Tigase version do you use (8.0.0 or nightlies)?
  • Could you share your complete configuration (etc/config.tdsl)?
  • Have you included autoCreateUser=true in your UserRepository configuration (main repository) as described in Custom Authentication Connectors?

Could you enabled debugging for the package db:

debug = [ 'db' ]

And share logs from the moment when you authenticate the user? Ideally whole log starting from establishing connection to all those "Received privacy request but user session is not authorized yet"

Unknown commented 5 years ago

Thank you very much!! this problem has been sovled. I have added autoCreateUser=true in the dataSoucre uri

dataSource {
    default () {
        uri = 'jdbc:postgresql://127.0.0.1/tigase?user=test&password=test&autoCreateUser=true'
    }
}
issue 1 of 1
Issue Votes (0)
Watchers (0)
Reference
tigase/_server/server-core#1374
Please wait...
Page is in error, reload to recover