FDrake,
а пользователь с пробелом в логине реально существует?
я о "Иванов РС", если что.
может быть снять галку "использовать имя компьютера в качестве логина"?
Да, пробелы в логинах есть, так исторически сложилось
Галки не стоит
С английскими логинами и снятой галкой "Отключать аутентификацию SASL (старые сервера)" полный порядок - авторизует и работает как надо.
С теми же настройками, но логином Иванов РС не работает ((
Вот последний лог с кириллицей и рабочими настройками для английского логина:
[15:32:35 2620] amThreadProc thread start
[15:32:35 2448] Setting protocol/module name to 'JABBER_1'
[15:32:35 2448] CAPS: set caps 572c36477fdff for: dKMk0MvWrhsy4Dkv3RcQe9BWY0k=#http://miranda-ng.org/caps => [0.95.11.1]
[15:32:39 2448] [JABBER_1] PS_SETSTATUS(40071,40071) => 40072
[15:32:39 0390] [JABBER_1] Thread started: type=0
[15:32:39 0390] [JABBER_1] Connection request to 192.168.115.5:5222 (Flags 0)....
[15:32:39 0390] [JABBER_1] (000000000308CD60) Connecting to server 192.168.115.5:5222....
[15:32:39 0390] [JABBER_1] (000000000308CD60) Connecting to ip 192.168.115.5:5222 ....
[15:32:39 0390] [JABBER_1] (1444) Connected to 192.168.115.5:5222
[15:32:39 0390] [JABBER_1] Thread type=0 server='192.168.115.5' port='5222'
[15:32:39 0390] [JABBER_1] Stream is initializing after connect
[15:32:39 0390] [JABBER_1] (000000000308CD60:1444) Data sent
<?xml version="1.0" encoding="UTF-8"?><stream:stream xmlns="jabber:client" to="domainr.ru" xmlns:stream="http://etherx.jabber.org/streams" xml:lang="ru" version="1.0">
[15:32:39 0390] [JABBER_1] Entering main recv loop
[15:32:39 0390] [JABBER_1] (000000000308CD60:1444) Data received
<?xml version='1.0' encoding='UTF-8'?><stream:stream xmlns:stream="http://etherx.jabber.org/streams" xmlns="jabber:client" from="domainr.ru" id="a1rybrrafb" xml:lang="ru" version="1.0">
[15:32:39 0390] [JABBER_1] recvResult = 183
[15:32:39 0390] [JABBER_1] bytesParsed = 183
[15:32:39 1098] M-SEARCH * HTTP/1.1
HOST: 239.255.255.250:1900
MAN: "ssdp:discover"
MX: 1
ST: urn:schemas-upnp-org:service:WANIPConnection:1
[15:32:39 1098] M-SEARCH * HTTP/1.1
HOST: 239.255.255.250:1900
MAN: "ssdp:discover"
MX: 1
ST: urn:schemas-upnp-org:service:WANPPPConnection:1
[15:32:39 0390] [JABBER_1] (000000000308CD60:1444) Data received
<stream:features><starttls xmlns="urn:ietf:params:xml:ns:xmpp-tls"></starttls><mechanisms xmlns="urn:ietf:params:xml:ns:xmpp-sasl"><mechanism>PLAIN</mechanism><mechanism>NTLM</mechanism></mechanisms><compression xmlns="http://jabber.org/features/compress"><method>zlib</method></compression><ver xmlns="urn:xmpp:features:rosterver"/><c xmlns="http://jabber.org/protocol/caps" hash="sha-1" node="https://www.igniterealtime.org/projects/openfire/" ver="hTIQ13SsKdQ38ItD+na/jFYnVNs="/></stream:features>
[15:32:39 0390] [JABBER_1] recvResult = 500
[15:32:39 0390] [JABBER_1] Server compression available
[15:32:39 0390] [JABBER_1] Zlib init...
[15:32:39 0390] [JABBER_1] Requesting Zlib compression
[15:32:39 0390] [JABBER_1] (000000000308CD60:1444) Data sent
<compress xmlns="http://jabber.org/protocol/compress"><method>zlib</method></compress>
[15:32:39 0390] [JABBER_1] bytesParsed = 500
[15:32:39 0390] [JABBER_1] (000000000308CD60:1444) Data received
<compressed xmlns='http://jabber.org/protocol/compress'/>
[15:32:39 0390] [JABBER_1] recvResult = 57
[15:32:39 0390] [JABBER_1] Compression confirmed
[15:32:39 0390] [JABBER_1] Starting Zlib stream compression...
[15:32:39 0390] [JABBER_1] Stream will be initialized after successful Zlib init
[15:32:39 0390] [JABBER_1] bytesParsed = 57
[15:32:39 0390] [JABBER_1] Stream is initializing after successful Zlib init
[15:32:39 0390] [JABBER_1] Deflate: Z_OK
[15:32:39 0390] [JABBER_1] (ZLIB) Data sent
<?xml version="1.0" encoding="UTF-8"?><stream:stream xmlns="jabber:client" to="domainr.ru" xmlns:stream="http://etherx.jabber.org/streams" xml:lang="ru" version="1.0">
===OUT: 165(129) bytes
[15:32:39 0390] [JABBER_1] Inflate: Z_OK
[15:32:39 0390] [JABBER_1] (ZLIB) Data received
<?xml version='1.0' encoding='UTF-8'?><stream:stream xmlns:stream="http://etherx.jabber.org/streams" xmlns="jabber:client" from="domainr.ru" id="a1rybrrafb" xml:lang="ru" version="1.0"><stream:features><mechanisms xmlns="urn:ietf:params:xml:ns:xmpp-sasl"><mechanism>PLAIN</mechanism><mechanism>NTLM</mechanism></mechanisms><ver xmlns="urn:xmpp:features:rosterver"/><c xmlns="http://jabber.org/protocol/caps" hash="sha-1" node="https://www.igniterealtime.org/projects/openfire/" ver="hTIQ13SsKdQ38ItD+na/jFYnVNs="/></stream:features>
===IN: 530(318) bytes
[15:32:39 0390] [JABBER_1] recvResult = 530
[15:32:39 0390] [JABBER_1] bytesParsed = 183
[15:32:39 0390] NtlmCreateResponseFromChallenge (N): chl= {(null):(null)} => 0
[15:32:39 0390] InitializeSecurityContext(NTLM): 0x90312
[15:32:39 0390] [JABBER_1] Deflate: Z_OK
[15:32:39 0390] [JABBER_1] (ZLIB) Data sent
<auth xmlns="urn:ietf:params:xml:ns:xmpp-sasl" mechanism="NTLM">TlRMTVNTUAABAAAAB7IIogUABQAwAAAACAAIACgAAAAKAGFKAAAAD0xLQUIyMDJSMjNVUFI=</auth>
===OUT: 143(127) bytes
[15:32:39 0390] [JABBER_1] bytesParsed = 347
[15:32:39 0390] [JABBER_1] Inflate: Z_OK
[15:32:39 0390] [JABBER_1] (ZLIB) Data received
<challenge xmlns="urn:ietf:params:xml:ns:xmpp-sasl">TlRMTVNTUAACAAAACgAKADgAAAAFgomi4hHdehyKU+EAAAAAAAAAAJgAmABCAAAACgA5OAAAAA8yADMAVQBQAFIAAgAKADIAMwBVAFAAUgABABwAUwBFAFIAVgBFAFIATwBQAEUATgBGAEkAUgBFAAQAEAAyADMAdQBwAHIALgByAHUAAwAuAFMAZQByAHYAZQByAE8AcABlAG4AZgBpAHIAZQAuADIAMwB1AHAAcgAuAHIAdQAFABAAMgAzAHUAcAByAC4AcgB1AAcACACZFiiObEXWAQAAAAA=</challenge>
===IN: 356(217) bytes
[15:32:39 0390] [JABBER_1] recvResult = 356
[15:32:39 0390] NtlmCreateResponseFromChallenge (N): chl=TlRMTVNTUAACAAAACgAKADgAAAAFgomi4hHdehyKU+EAAAAAAAAAAJgAmABCAAAACgA5OAAAAA8yADMAVQBQAFIAAgAKADIAMwBVAFAAUgABABwAUwBFAFIAVgBFAFIATwBQAEUATgBGAEkAUgBFAAQAEAAyADMAdQBwAHIALgByAHUAAwAuAFMAZQByAHYAZQByAE8AcABlAG4AZgBpAHIAZQAuADIAMwB1AHAAcgAuAHIAdQAFABAAMgAzAHUAcAByAC4AcgB1AAcACACZFiiObEXWAQAAAAA= {(null):(null)} => 0
[15:32:39 0390] InitializeSecurityContext(NTLM): 0x0
[15:32:39 0390] [JABBER_1] Deflate: Z_OK
[15:32:39 0390] [JABBER_1] (ZLIB) Data sent
<response xmlns="urn:ietf:params:xml:ns:xmpp-sasl">TlRMTVNTUAADAAAAGAAYAIIAAAAYABgAmgAAAAoACgBYAAAAEAAQAGIAAAAQABAAcgAAAAAAAACyAAAABYKIogoAYUoAAAAPLbhFMU49VzrB1ApIxWWr5zIAMwBVAFAAUgAuBEgEOgQ+BDIEIAAgBCEETABLAEEAQgAyADAAMgBSAH9wyVMu6dfRAAAAAAAAAAAAAAAAAAAAAEhPVyGAuBNXz6gFltTq5p5V4A4xwlmxCA==</response>
===OUT: 302(191) bytes
[15:32:39 0390] [JABBER_1] bytesParsed = 356
[15:32:39 0390] [JABBER_1] Inflate: Z_OK
[15:32:39 0390] [JABBER_1] (ZLIB) Data received
<success xmlns="urn:ietf:params:xml:ns:xmpp-sasl">=</success>
===IN: 61(21) bytes
[15:32:39 0390] [JABBER_1] recvResult = 61
[15:32:39 0390] [JABBER_1] Success: Logged-in.
[15:32:39 0390] [JABBER_1] Stream will be initialized after successful sasl
[15:32:39 0390] [JABBER_1] bytesParsed = 61
[15:32:39 0390] [JABBER_1] Stream is initializing after successful sasl
[15:32:39 0390] [JABBER_1] Deflate: Z_OK
[15:32:39 0390] [JABBER_1] (ZLIB) Data sent
<?xml version="1.0" encoding="UTF-8"?><stream:stream xmlns="jabber:client" to="domainr.ru" xmlns:stream="http://etherx.jabber.org/streams" xml:lang="ru" version="1.0">
===OUT: 165(10) bytes
[15:32:39 0390] [JABBER_1] Inflate: Z_OK
[15:32:39 0390] [JABBER_1] (ZLIB) Data received
<?xml version='1.0' encoding='UTF-8'?><stream:stream xmlns:stream="http://etherx.jabber.org/streams" xmlns="jabber:client" from="domainr.ru" id="a1rybrrafb" xml:lang="ru" version="1.0"><stream:features><ver xmlns="urn:xmpp:features:rosterver"/><bind xmlns="urn:ietf:params:xml:ns:xmpp-bind"/><session xmlns="urn:ietf:params:xml:ns:xmpp-session"><optional/></session><sm xmlns='urn:xmpp:sm:2'/><sm xmlns='urn:xmpp:sm:3'/><c xmlns="http://jabber.org/protocol/caps" hash="sha-1" node="https://www.igniterealtime.org/projects/openfire/" ver="hTIQ13SsKdQ38ItD+na/jFYnVNs="/></stream:features>
===IN: 585(70) bytes
[15:32:39 0390] [JABBER_1] recvResult = 585
[15:32:39 0390] [JABBER_1] bytesParsed = 183
[15:32:39 0390] [JABBER_1] Deflate: Z_OK
[15:32:39 0390] [JABBER_1] (ZLIB) Data sent
<iq type="set" id="mir6786b4503e856bf5_1"><bind xmlns="urn:ietf:params:xml:ns:xmpp-bind"><resource>Miranda</resource></bind></iq>
===OUT: 129(85) bytes
[15:32:39 0390] [JABBER_1] bytesParsed = 402
[15:32:39 0390] [JABBER_1] Inflate: Z_OK
[15:32:39 0390] [JABBER_1] (ZLIB) Data received
<iq type="error" id="mir6786b4503e856bf5_1" to="domainr.ru/a1rybrrafb"><bind xmlns="urn:ietf:params:xml:ns:xmpp-bind"><resource>Miranda</resource></bind><error code="500" type="wait"><internal-server-error xmlns="urn:ietf:params:xml:ns:xmpp-stanzas"/></error></iq>
===IN: 262(134) bytes
[15:32:39 0390] [JABBER_1] recvResult = 262
[15:32:39 0390] [JABBER_1] Deflate: Z_OK
[15:32:39 0390] [JABBER_1] (ZLIB) Data sent
</stream:stream>
===OUT: 16(12) bytes
[15:32:39 0390] [JABBER_1] bytesParsed = 262
[15:32:39 0390] [JABBER_1] Inflate: Z_OK
[15:32:39 0390] [JABBER_1] (ZLIB) Data received
</stream:stream>
===IN: 16(11) bytes
[15:32:39 0390] [JABBER_1] recvResult = 16
[15:32:39 0390] [JABBER_1] bytesParsed = 16
[15:32:39 0390] [JABBER_1] Connection closed gracefully
[15:32:39 0390] [JABBER_1] recvResult = 0
[15:32:39 0390] [JABBER_1] m_iDesiredStatus reset to (1,40072) => 40071
[15:32:39 0390] [JABBER_1] leaving worker thread
[15:32:39 0390] [JABBER_1] Thread ended: type=0 server='domainr.ru'
[15:32:39 0390] [JABBER_1] (000000000308CD60:1444) Connection closed internal
[15:32:39 0390] [JABBER_1] (000000000308CD60:4294967295) Connection closed
[15:32:39 0390] [JABBER_1] Exiting ServerThread
[15:32:41 1098] M-SEARCH * HTTP/1.1
HOST: 239.255.255.250:1900
MAN: "ssdp:discover"
MX: 1
ST: urn:schemas-upnp-org:service:WANIPConnection:1
[15:32:41 1098] M-SEARCH * HTTP/1.1
HOST: 239.255.255.250:1900
MAN: "ssdp:discover"
MX: 1
ST: urn:schemas-upnp-org:service:WANPPPConnection:1
[15:32:42 1098] UPnP Gateway detected 0, Control URL:
Так же удалось добиться вменяемой ошибки от openfire:
2020.06.18 15:45:20 WARN [socket_c2s-thread-2]: org.jivesoftware.openfire.ldap.LdapManager - Using unencrypted connection to LDAP service!
2020.06.18 15:45:20 WARN [socket_c2s-thread-2]: org.jivesoftware.openfire.ldap.LdapManager - Using unencrypted connection to LDAP service!
2020.06.18 15:45:20 WARN [socket_c2s-thread-2]: org.jivesoftware.openfire.ldap.LdapManager - Using unencrypted connection to LDAP service!
2020.06.18 15:45:20 WARN [socket_c2s-thread-2]: org.jivesoftware.openfire.ldap.LdapManager - Using unencrypted connection to LDAP service!
2020.06.18 15:45:20 WARN [socket_c2s-thread-2]: org.jivesoftware.openfire.ldap.LdapManager - Using unencrypted connection to LDAP service!
2020.06.18 15:45:20 WARN [socket_c2s-thread-2]: org.jivesoftware.openfire.ldap.LdapManager - Using unencrypted connection to LDAP service!
2020.06.18 15:45:20 INFO [socket_c2s-thread-2]: org.jivesoftware.util.cache.CacheFactory - Created cache [org.jivesoftware.util.cache.DefaultLocalCacheStrategy] for Locked Out Accounts
2020.06.18 15:45:20 ERROR [socket_c2s-thread-2]: org.jivesoftware.openfire.handler.IQHandler - Внутренняя ошибка сервера
java.lang.IllegalArgumentException: Illegal JID: иванов рс@domainr.ru/Miranda
at org.xmpp.packet.JID.<init>(JID.java:534) ~[tinder-2.0.0.jar:?]
at org.xmpp.packet.JID.<init>(JID.java:490) ~[tinder-2.0.0.jar:?]
at org.jivesoftware.openfire.session.LocalClientSession.setAuthToken(LocalClientSession.java:684) ~[xmppserver-4.5.2.jar:4.5.2]
at org.jivesoftware.openfire.handler.IQBindHandler.handleIQ(IQBindHandler.java:156) ~[xmppserver-4.5.2.jar:4.5.2]
at org.jivesoftware.openfire.handler.IQHandler.process(IQHandler.java:62) [xmppserver-4.5.2.jar:4.5.2]
at org.jivesoftware.openfire.IQRouter.handle(IQRouter.java:369) [xmppserver-4.5.2.jar:4.5.2]
at org.jivesoftware.openfire.IQRouter.route(IQRouter.java:112) [xmppserver-4.5.2.jar:4.5.2]
at org.jivesoftware.openfire.spi.PacketRouterImpl.route(PacketRouterImpl.java:74) [xmppserver-4.5.2.jar:4.5.2]
at org.jivesoftware.openfire.net.StanzaHandler.processIQ(StanzaHandler.java:366) [xmppserver-4.5.2.jar:4.5.2]
at org.jivesoftware.openfire.net.ClientStanzaHandler.processIQ(ClientStanzaHandler.java:95) [xmppserver-4.5.2.jar:4.5.2]
at org.jivesoftware.openfire.net.StanzaHandler.process(StanzaHandler.java:316) [xmppserver-4.5.2.jar:4.5.2]
at org.jivesoftware.openfire.net.StanzaHandler.process(StanzaHandler.java:203) [xmppserver-4.5.2.jar:4.5.2]
at org.jivesoftware.openfire.nio.ConnectionHandler.messageReceived(ConnectionHandler.java:183) [xmppserver-4.5.2.jar:4.5.2]
at org.apache.mina.core.filterchain.DefaultIoFilterChain$TailFilter.messageReceived(DefaultIoFilterChain.java:1015) [mina-core-2.1.3.jar:?]
at org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextMessageReceived(DefaultIoFilterChain.java:650) [mina-core-2.1.3.jar:?]
at org.apache.mina.core.filterchain.DefaultIoFilterChain.access$1300(DefaultIoFilterChain.java:49) [mina-core-2.1.3.jar:?]
at org.apache.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.messageReceived(DefaultIoFilterChain.java:1128) [mina-core-2.1.3.jar:?]
at org.apache.mina.core.filterchain.IoFilterAdapter.messageReceived(IoFilterAdapter.java:122) [mina-core-2.1.3.jar:?]
at org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextMessageReceived(DefaultIoFilterChain.java:650) [mina-core-2.1.3.jar:?]
at org.apache.mina.core.filterchain.DefaultIoFilterChain.access$1300(DefaultIoFilterChain.java:49) [mina-core-2.1.3.jar:?]
at org.apache.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.messageReceived(DefaultIoFilterChain.java:1128) [mina-core-2.1.3.jar:?]
at org.apache.mina.filter.codec.ProtocolCodecFilter$ProtocolDecoderOutputImpl.flush(ProtocolCodecFilter.java:413) [mina-core-2.1.3.jar:?]
at org.apache.mina.filter.codec.ProtocolCodecFilter.messageReceived(ProtocolCodecFilter.java:257) [mina-core-2.1.3.jar:?]
at org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextMessageReceived(DefaultIoFilterChain.java:650) [mina-core-2.1.3.jar:?]
at org.apache.mina.core.filterchain.DefaultIoFilterChain.access$1300(DefaultIoFilterChain.java:49) [mina-core-2.1.3.jar:?]
at org.apache.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.messageReceived(DefaultIoFilterChain.java:1128) [mina-core-2.1.3.jar:?]
at org.apache.mina.filter.compression.CompressionFilter.messageReceived(CompressionFilter.java:169) [mina-filter-compression-2.1.3.jar:?]
at org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextMessageReceived(DefaultIoFilterChain.java:650) [mina-core-2.1.3.jar:?]
at org.apache.mina.core.filterchain.DefaultIoFilterChain.access$1300(DefaultIoFilterChain.java:49) [mina-core-2.1.3.jar:?]
at org.apache.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.messageReceived(DefaultIoFilterChain.java:1128) [mina-core-2.1.3.jar:?]
at org.apache.mina.core.filterchain.IoFilterEvent.fire(IoFilterEvent.java:106) [mina-core-2.1.3.jar:?]
at org.apache.mina.core.session.IoEvent.run(IoEvent.java:89) [mina-core-2.1.3.jar:?]
at org.apache.mina.filter.executor.OrderedThreadPoolExecutor$Worker.runTask(OrderedThreadPoolExecutor.java:766) [mina-core-2.1.3.jar:?]
at org.apache.mina.filter.executor.OrderedThreadPoolExecutor$Worker.runTasks(OrderedThreadPoolExecutor.java:758) [mina-core-2.1.3.jar:?]
at org.apache.mina.filter.executor.OrderedThreadPoolExecutor$Worker.run(OrderedThreadPoolExecutor.java:697) [mina-core-2.1.3.jar:?]
at java.lang.Thread.run(Unknown Source) [?:1.8.0_202]
Caused by: java.lang.IllegalArgumentException: The input 'иванов рс' is not a valid JID node part: Contains prohibited code points.
at org.xmpp.packet.JID.nodeprep(JID.java:331) ~[tinder-2.0.0.jar:?]
at org.xmpp.packet.JID.<init>(JID.java:522) ~[tinder-2.0.0.jar:?]
... 35 more
Post Merge: 18 06 2020, 13:32:45
Похоже, что проблема именно с пробелом в логине. Обычные типа ИвановРС отрабатываются нормально. Сможете доработать ?