Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I am a complete n00b to configuring Jabber/XMPP servers and I am hoping to get some help getting set up. I have done all of this and installed pidgin. I seem to be able set up my "admin-user" in pidgin no problem but when I try to register a new user I get a 403 Fobidden message back from pidgin.

Do I need to change the ejabberd.cfg file to allow users to register? If so how do I go about it? If not what do I need to get basic chat and fileshare going?

share|improve this question
add comment

2 Answers

up vote 5 down vote accepted

You have two options regarding user registration. You can either manually create user accounts on the server, or you can enable in-band registration, which allows anyone who can connect to the server to register an account.

If you want to create accounts manually, run this on the server for each user:

sudo ejabberdctl register <username> <domain> <password>

If you want to enable in-band registration, find the following line in /etc/ejabberd/ejabberd.cfg and change the deny to allow so that it looks like this.

{access, register, [{allow, all}]}.
share|improve this answer
    
Awesome that worked thanks. Any info on how I can get registered uses to be able to chat?!! –  travega May 21 '12 at 3:04
1  
The users need to add each other to their rosters, and should then be able to send messages. –  mgorven May 21 '12 at 5:24
add comment

Related to mgorven's answer above, here is a little script I use to dump useful information about registered users to stdout. The ejabberdctl dump command requires a file rather than stdout, which is why I do all the other nonsense below:

#!/bin/sh
sudo ejabberdctl dump /tmp/etmpdump.txt
sudo chown $LOGNAME /tmp/etmpdump.txt
grep "{passwd,{" </tmp/etmpdump.txt | sed -e 's/{passwd,{"//g;s/","/ /g;s/"},"/ /g;s/"}.//g' | sort
rm -f /tmp/etmpdump.txt
share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.