hello, I try to use sendxmpp from redhat (6.4) linux server. I setup sendxmpp 1.24 and the command line works.
configuration : /root/.sendxmpprc username: [email protected] jserver: talk.google.com password: xxxx component: gmail.com echo "Test hangout" |sendxmpp -e -u myuser -o gmail.com [email protected] Use of uninitialized value in string eq at /usr/bin/sendxmpp line 518. Error 'AuthSend': [?] I try to understand what's mean Error 'AuthSend' ? in debug mode : sendxmpp: config: 'password' => 'xxxx' sendxmpp: config: 'component' => 'gmail.com' sendxmpp: config: 'jserver' => 'talk.google.com' sendxmpp: config: 'username' => '[email protected]' XML::Stream: new: hostname = (myhostname) XML::Stream: SetCallBacks: tag(node) func(CODE(0x2fc0770)) XMPP::Conn: xmppCallbackInit: start XMPP::Conn: SetCallBacks: tag(message) func(CODE(0x2fc6690)) XMPP::Conn: SetCallBacks: tag(presence) func(CODE(0x2fc65d0)) XMPP::Conn: SetCallBacks: tag(iq) func(CODE(0x2fc6510)) XMPP::Conn: SetPresenceCallBacks: type(subscribe) func(CODE(0x2fc65e8)) XMPP::Conn: SetPresenceCallBacks: type(subscribed) func(CODE(0x2fc6930)) XMPP::Conn: SetPresenceCallBacks: type(unsubscribe) func(CODE(0x2fc6870)) XMPP::Conn: SetPresenceCallBacks: type(unsubscribed) func(CODE(0x2fc69f0)) XMPP::Conn: SetDirectXPathCallBacks: xpath(/[@xmlns="urn:ietf:params:xml:ns:xmpp-tls"]) func(CODE(0x2fc6948)) XMPP::Conn: SetDirectXPathCallBacks: xpath(/[@xmlns="urn:ietf:params:xml:ns:xmpp-sasl"]) func(CODE(0x2fbffd8)) XMPP::Conn: xmppCallbackInit: stop sendxmpp: ssl_verify: 1 sendxmpp: tls_ca_path: XMPP::Conn: Connect: host(talk.google.com:5223) namespace(jabber:client) XMPP::Conn: Connect: timeout(10) XML::Stream: Connect: type(tcpip) XML::Stream: Connect: Convert normal socket to SSL XML::Stream: Connect: sock(IO::Socket::INET=GLOB(0x2fba980)) XML::Stream: LoadSSL: Load the IO::Socket::SSL module XML::Stream: LoadSSL: Success XML::Stream: Connect: ssl_sock(IO::Socket::SSL=GLOB(0x2fba980)) XML::Stream: Connect: SSL: We are secure 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' xmlns='jabber:client' to=' gmail.com' from='slvopr001.addcnet.com' xml:lang='en' >) XML::Stream: Read: buff(<stream:stream from="gmail.com" id="A4BC64230B313E3E" version="1.0" xmlns:stream=" http://etherx.jabber.org/streams" xmlns="jabber:client">) XML::Stream: Read: buff(<stream:features><mechanisms xmlns="urn:ietf:params:xml:ns:xmpp-sasl"><mechanism>X-OAUTH2</mechanism><mechanism>X-GOOGLE-TOKEN</mechanism><mechanism>PLAIN</mechanism></mechanisms></stream:features>) XMPP::Conn: Connect: connection made XML::Stream: SetCallBacks: tag(node) func(CODE(0x2fbfa08)) sendxmpp: Connect: 1 XMPP::Conn: AuthSASL: shiney new auth XML::Stream: Send: (<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>YmVub2l0LnJvdXNzZWxsZUBnbWFpbC5jb20AYmVub2l0LnJvdXNzZWxsZQBwcmFzb3dhNzU=</auth>) XMPP::Conn: AuthSASL: haven't authed yet... let's wait. XMPP::Conn: Process: timeout(1) XML::Stream: Read: buff(<failure xmlns="urn:ietf:params:xml:ns:xmpp-sasl"><not-authorized/></failure>) XMPP::Conn: AuthSASL: Authentication failed. Error 'AuthSend': error: not-authorized[?] XML::Stream: Send: (</stream:stream>) XML::Stream: SetCallBacks: tag(node) func(CODE(0x30fa8d0)) XMPP::Conn: Disconnect: bye bye sendxmpp: Disconnect
