Get contact with the server (localy) in windows xp

Hello..

Im new on the forum, and a new user of ejabberd.

I've tried to configure the server right, but it seems not to work. I've also read alot of howto's and forum-replays, but there is nothing that solve my problems.

Just to clear things up, i've downloaded and installed both Erlang (source + pre-compiled) and OpenSSL.

I've also istalled the server application, ejabberd-1.1.1-windows (released 2006-04-28).

Now, first of all, is there a problem to use Erlang R11B-1?

If everything seems ok to this point, lets go on..

I've modified the configfile, as u can c below,

{acl, admin, {user, "xxx", "example.com"}}. <-- creates a user with name xxx
{hosts, ["example.com"]}. <-- hostname
{5280, ejabberd_http, [http_poll, web_admin]} <-- enables the web_admin

First of all, shouldnt i just use {acl, admin, {user, "xxx"}}. and {hosts, ["localhost"]}. when im gonna use it local on my comp?

When i try to connect to the web-admin, i use http://localhost:5082/admin
and get the username/passwd window. In this window, should i use xxx@example.com or just xxx@localhost?

Now there shoule be a user with admin-rights.

I now need to set a password to the user-account. I do this with a jabber-client? I've installed Pandion, but when i'm trying to make a new account, with the username i specified in the configfile, i get no connection with the server (using example.com also tried localhost).

What do i have to do to set that password?

ejabberdctl isnt available in windows, is it? I dont find such a command, so i cant set the password that way.

I hope someone can help me with this :)

Best regards,
Veritas

Veritas wrote: Just to

Veritas wrote:

Just to clear things up, i've downloaded and installed both Erlang (source + pre-compiled) and OpenSSL.

Source Erlang? On Windows you just need to install the precompiled Erlang.

Veritas wrote:

I've also istalled the server application, ejabberd-1.1.1-windows (released 2006-04-28).

Now, first of all, is there a problem to use Erlang R11B-1?

Yes, there's a problem, since the installer of ejabberd 1.1.1 was compiled with Erlang R10B-10. Please uninstall R11 and install R10.

Veritas wrote:

I've modified the configfile, as u can c below,

{acl, admin, {user, "xxx", "example.com"}}. <-- creates a user with name xxx
{hosts, ["example.com"]}. <-- hostname
{5280, ejabberd_http, [http_poll, web_admin]} <-- enables the web_admin

I guess the '{5280...' line is inside the 'listen' section, right?

Veritas wrote:

First of all, shouldnt i just use {acl, admin, {user, "xxx"}}. and {hosts, ["localhost"]}. when im gonna use it local on my comp?

When i try to connect to the web-admin, i use http://localhost:5082/admin
and get the username/passwd window. In this window, should i use xxx@example.com or just xxx@localhost?

Now there shoule be a user with admin-rights.

I now need to set a password to the user-account. I do this with a jabber-client? I've installed Pandion, but when i'm trying to make a new account, with the username i specified in the configfile, i get no connection with the server (using example.com also tried localhost).

What do i have to do to set that password?

Several things you must know:

  1. {user, "xxx"} allows any user with JID xxx@* to be admin: bad idea. Instead, with {user, "xxx", "yyy"} only the user with JID xxx@yyy will be admin.
  2. Whatever you put on ejabberd.cfg does not create accounts at all, it just gives privileges. You must create the account xxx@yyy using a Jabber client (for example). Note that xxx@yyy is a Jabber account, with admin rights.
  3. When the web asks username and password, put xxx@yyy and the password you specified when creating the account.
  4. 'hostname' specifies the Jabber server name: jabber.org, example.com or whatever, not necessarily the name of your machine. In my example, yyy.
  5. If a Jabber client can't connect to the Jabber server, check the ejabberd log files for ERROR or CRASH. Make sure the Jabber server is reachable. Some clients allow you to specify the IP address of the Jabber server. For example, if you set hostname to yyy, obviously Jabber clients will not find the server, but you can tell the client to connect using the address 127.0.0.1.
Veritas wrote:

ejabberdctl isnt available in windows, is it? I dont find such a command, so i cant set the password that way.

It isn't, and you don't need it at all to get ejabberd working.

Thanks for the great respons :)

badlop wrote:

I guess the '{5280...' line is inside the 'listen' section, right?

yes :)

Thanks alot for the great respons :)

I've installed R10 now, but i still can't connect to the server..

I've tried with both hostname and ip, but it disconnects within 1 sec :-/
The clients i've tried is Pandition, Exodus, Trillian and now Psi.

In Psi i can manually specify server host/port. i've used port 5222. 127.0.0.1 and example.com as host name, but wont stay connected to the server.

=INFO REPORT==== 25-Sep-2006::09:46:40 ===
I(<0.306.0>:ejabberd_listener:90): (#Port<0.352>) Accepted connection {{127,0,0,1},1599} -> {{127,0,0,1},5222}

I dunno if im doing somethn totaly wrong, but this shouldnt be that hard ><
All i need it that password to log on the web-admin.

Creating an account should absolutly been part of the installation process of the server.. Atleast an option.

I've read that its possible to create password with the new beta version?
I hope someone has experienced the same as me, and got an answer how to fix it.

Veritas

Syndicate content