Have made a litte output:
Code:
for (@to)
{
$con->Connect (hostname=>$hostname) or die;
my @result = $con->AuthSend (username=>$username, password=>$password, resource=>$resource);
foreach (@result) {
print "$_\n";
}
next if $result[0] ne "ok";
$msg->SetMessage (to=>$_, body=>$ARGV[0]);
$con->Send ($msg);
$con->Disconnect;
} I see the conection is ok, but when I run ./send-jabber.pl hello I get:
Code:
error
not-authorized
And at mailbox.log:
Code:
2008-08-21 14:02:23,607 INFO [SocketAcceptorIoProcessor-1.0] [] im - XMPP Session created: (SOCKET, R: /10.x.x.x:42280, L: /10.x.x.x:5222, S: 0.0.0.0/0.0.0.0:5222)
2008-08-21 14:02:23,637 INFO [AnonymousIoService-3] [] im - Handshaking complete for client
2008-08-21 14:02:23,698 INFO [AnonymousIoService-7] [] im - XMPP Session closed: (SOCKET, R: /10.x.x.x:42280, L: /10.x.x.x:5222, S: 0.0.0.0/0.0.0.0:5222)
That's nice, it's an answer from Zimbra, but don't know what is wrong, I can log into zimbra webmail with that user and password.
Still trying...