So... you did at least try, right?
Because, unless you are using a version of XMPPPHP very different from
what I can find online the first parameter is definitely the service
name of the server to connect to, while the 6th is the actual address.
That this worked with Openfire is not an argument at all, they may
conceivably handle virtual hosts very differently than Prosody.
Am 23.08.2012 21:42, schrieb Dragos Andronic:
> The order of the parameters is correct - the first parameter is the
> ip/address of the server.
> I've been using a similar syntax for connecting to the Openfire server:
> $conn = new XMPPHP_XMPP('176.34.122.100', 5222,
> 'myuser@mydomain','mypassword', 'xmpphp')
> and everything worked.
>
> Any other ideas?
>
> On Thursday, August 23, 2012 3:48:06 PM UTC+3, Florian Zeitz wrote:
>
> Am 23.08.2012 13:52, schrieb Dragos Andronic:
> > I'm migrating from openfire to prosody to take advantage of the CORS
> > support.
> >
> > I've configured prosody (see the attached config file) and tested the
> > server by connecting with some xmpp clients (gajim, pandion) and it
> > works ok.
> > Connecting via strophe via BOSH also works.
> >
> > Now I'm trying to connect via XMPPHP from a php running on the
> same machine:
> > $conn = new XMPPHP_XMPP('176.34.122.100', 5222,
> 'myuser','mypassword',
> > 'xmpphp', '
txtfeedback.net <
http://txtfeedback.net>');
> > $conn->connect();
> > $conn->processUntil('session_start');
> >
> > and whatever combination I try I end up with
> > Fatal error: Uncaught exception 'XMPPHP_Exception' with message 'Auth
> > failed!' in /var/www/html/sms/XMPPHP/XMPP.php:
> >
> > Connecting with the same user/credentials from other IM clients works
> > just fine.
> > Any ideas of what may be wrong?
> >
> Hello,
>
> If it really fails with "whatever combination" that is strange, but
> from
> a casual reading of XMPPPHP's source, I think you just put the IP and
> the domain in the wrong arguments. I.e. the call should be:
> $conn = new XMPPHP_XMPP('
txtfeedback.net <
http://txtfeedback.net>',
> 5222, 'myuser','mypassword',
> 'xmpphp', '176.34.122.100');
>
> Regards,
> Florian
>
> --
> You received this message because you are subscribed to the Google
> Groups "Prosody IM Users" group.
> To view this discussion on the web, visit
>
https://groups.google.com/d/msg/prosody-users/-/8R7dziZFA94J.
> To post to this group, send an email to
prosod...@googlegroups.com.
> To unsubscribe from this group, send email to
>
prosody-user...@googlegroups.com.
> For more options, visit this group at
>
http://groups.google.com/group/prosody-users?hl=en-GB.