Имя пользователя:
Пароль:  
Помощь | Регистрация | Забыли пароль?  

Показать сообщение отдельно

Новый участник


Сообщения: 10
Благодарности: 0

Профиль | Отправить PM | Цитировать


PS: Для тех кто не в курсе по ключам к этой утилите - под катом есть основные и дополнительные:
читать дальше »

--no-tls-verify
--tls-ca-path

-f,--file <file> use <file> configuration file instead of ~/.sendxmpprc
-u,--username <user> use <user> instead of the one in the configuration file
-p,--password <password> use <password> instead of the one in the configuration file
-j,--jserver <server> use jabber server <server> instead of the one in the configuration file. Note that you can add :<port> to use a non-default port, ie. -j myjabber.org:1234
-r,--resource <res> use resource <res> for the sender [default: 'sendxmpp']; when sending to a chatroom, this determines the 'alias'
-t,--tls connect securely, using TLS
-c,--chatroom send the message to a chatroom
-s,--subject <subject> set the subject for the message to <subject> [default: '']; when sending to a chatroom, this will set the subject for the chatroom
-m,--message <message> read the message from <message> (a file) instead of stdin
-i,--interactive work in interactive mode, reading lines from stdin and sending the one-at-time
-v,--verbose give verbose output about what is happening
-h,--help,--usage show a 'Usage' message
-d,--debug show debugging info while running. WARNING: This will include passwords etc. so be careful with the output!

По ссылкам подробнее все.
http://pwet.fr/man/linux/commandes/sendxmpp
http://sendxmpp.hostname.sk/

---------------------------------------------------------------------------------------------



По теме:
Я не могу победить его снова.
Я использую яндекс почта для домена. ( https://pdd.yandex.ru/ )
Пишу команду:
echo blabla | sendxmpp.exe -u "admin@2xxx.ru" -p "werwerwe23" -j "xmpp.yandex.ru:5222" bla-bla@jabber.ru

и получаю отбой...

Сould not connect to 'xmpp.yandex.ru' on port 5222:
или
Сould not connect to 'domain-xmpp.ya.ru' on port 5222:

Джаббер клиент обычный нормально при этом авторизуется.
Помню, что есть особенность, с ненадобностью включения SASL аутефикации.



http://help.yandex.ru/pdd/chat.xml



Вот лог отладки:
читать дальше »


XML::Stream: new: hostname = (Windows)
XML::Stream: SetCallBacks: tag(node) func(CODE(0x3ed38))
XMPP::Conn: xmppCallbackInit: start
XMPP::Conn: SetCallBacks: tag(message) func(CODE(0x3ed58))
XMPP::Conn: SetCallBacks: tag(presence) func(CODE(0x3edb288))
XMPP::Conn: SetCallBacks: tag(iq) func(CODE(0x3edbd10))
XMPP::Conn: SetPresenceCallBacks: type(subscribe) func(CODE(0x3ed70))
XMPP::Conn: SetPresenceCallBacks: type(subscribed) func(CODE(0x3e378))
XMPP::Conn: SetPresenceCallBacks: type(unsubscribe) func(CODE(0x3e150))
XMPP::Conn: SetPresenceCallBacks: type(unsubscribed) func(CODE(0x3edb390))
XMPP::Conn: SetDirectXPathCallBacks: xpath(/[@xmlns="urn:ietf:params:xml:ns:xmpp-tls"]) func(CODE(0x3ed28))
XMPP::Conn: SetDirectXPathCallBacks: xpath(/[@xmlns="urn:ietf:params:xml:ns:xmpp-sasl"]) func(CODE(0x3ed80))
XMPP::Conn: xmppCallbackInit: stop
sendxmpp: ssl_verify: 0
sendxmpp: tls_ca_path:
XMPP::Conn: Connect: host(xmpp.yandex.ru:5222) namespace(jabber:client)
XMPP::Conn: Connect: timeout(10)
XML::Stream: Connect: type(tcpip)
XML::Stream: Connect: Got a connection
XML::Stream: Send: (<?xml version='1.0'?><stream:stream version='1.0' xmlns:stream='http://etherx.jabber.org/streams' xm
lns='jabber:client' to='xmpp.yandex.ru' from='same' xml:lang='en' >)
XML::Stream: Read: buff(<?xml version='1.0'?><stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org
/streams' id='7593108' from='ya.ru' xml:lang='en'><stream:error><host-unknown xmlns='urn:ietf:params:xml:ns:xmpp-strea
ms'/></stream:error></stream:stream>)
XML::Stream: _handle_root: sid(newconnection) sax(XML::Stream::Parser=HASH(0x3edccc0)) tag(stream:stream) att( xmlns:str
eam http://etherx.jabber.org/streams xmlns jabber:client from ya.ru id 7593108 xml:lang en )
XML::Stream: Node: _handle_element: sid(newconnection) sax(XML::Stream::Parser=HASH(0x3edccc0)) tag(stream:error) att( )

XML::Stream: Node: _handle_element: check( -1 )
XML::Stream: Node: _handle_element: sid(newconnection) sax(XML::Stream::Parser=HASH(0x3edccc0)) tag(host-unknown) att( x
mlns urn:ietf:params:xml:ns:xmpp-streams )
XML::Stream: Node: _handle_element: check( 0 )
XML::Stream: Node: _handle_close: sid(newconnection) sax(XML::Stream::Parser=HASH(0x3edccc0)) tag(host-unknown)
XML::Stream: Node: _handle_close: check( 1 )
XML::Stream: Node: _handle_close: check2( 0 )
XML::Stream: Node: _handle_close: sid(newconnection) sax(XML::Stream::Parser=HASH(0x3edccc0)) tag(stream:error)
XML::Stream: Node: _handle_close: check( 0 )
XML::Stream: Node: _handle_close: check2( -1 )
XML::Stream: Node: _handle_close: sid(newconnection) sax(XML::Stream::Parser=HASH(0x3edccc0)) tag(stream:stream)
XML::Stream: Node: _handle_close: check( -1 )
XML::Stream: Node: _handle_close: rootTag(stream:stream) tag(stream:stream)
Could not connect to 'xmpp.yandex.ru' on port 5222:

Последний раз редактировалось ameelien, 24-07-2013 в 16:58.


Отправлено: 15:07, 24-07-2013 | #15