Don't ask to ask, just ask | |
PerlMonks |
[fixed] Net::XMPP in Win32 gets not-authorized, same code works 100% in Linuxby wilsond (Scribe) |
on Jan 09, 2009 at 07:40 UTC ( [id://735105]=perlquestion: print w/replies, xml ) | Need Help?? |
wilsond has asked for the wisdom of the Perl Monks concerning the following question: Edit: Apparently Net::XMPP is deprecated. Net::XMPP2 seems to replace it. But Net::XMPP2 is deprecated too. AnyEvent::XMPP replaced it. It seems that new XMPP implementations should use AnyEvent::XMPP. I've written some sample code to test out Net::XMPP for a cross-platform utility. It works great in Linux. It gives "not-authorized" in Windows. Using strace, I've grabbed the names of all of the perl modules used in Linux with this script. I've tested to ensure that those modules are all installed in Linux. They all appear to be there. When testing the code, I'm using the same identical code between Linux and Windows. There is no platform-specific code in it. It doesn't matter if TLS is 0 or 1. It fails both ways. The XMPP server doesn't require TLS. Any ideas? I'm lost on this one. Here's the code:
Edit: TLS info Edit: FIXED! Changing AuthSend to AuthIQAuth makes it work fine. This disables SASL. TLS will take care of the encryption, though. As long as this doesn't irritate the XMPP server when I lock it down, I'm good to go! Thanks everyone for your help. Here's the updated bit of code that "fixed" it:
Back to
Seekers of Perl Wisdom
|
|