Installed on Debian 8 Ejabberd 14.07 from the default repository.
The command, sudo apt-get install ejabberd
When registering a new account through Pidjin or another program.
Writes error 403.
Here are the server logs:
Send XML on stream = <<"<iq from='7.25.188.45' id='purpleb0f17b14' type='result'><query xmlns='jabber:iq:register'><instructions>Choose a username and password to register with this server</instructions><username></username><password/></query></iq>">>
20:30:13.119 [debug] Received XML on stream = <<"<iq type='set' id='purpleb0f17b15' to='7.25.188.45'><query xmlns='jabber:iq:register'><username>test</username><password>123456</password></query></iq>">>
Send XML on stream = <<"<iq from='7.25.188.45' id='purpleb0f17b15' type='error'><query xmlns='jabber:iq:register'><username>test</username><password>123456</password></query><error code='403' type='auth'><forbidden xmlns='urn:ietf:params:xml:ns:xmpp-stanzas'/></error></iq>">>
Here is my config:
acl:
##
## The 'admin' ACL grants administrative privileges to XMPP accounts.
## You can put here as many accounts as you want.
##
admin:
user:
- "admin": "7.25.188.45"
##
## Blocked users
##
## blocked:
## user:
## - "baduser": "example.org"
## - "test"
## Local users: don't modify this.
##
local:
user_regexp: ""
##
## More examples of ACLs
##
## jabberorg:
## server:
## - "jabber.org"
## aleksey:
## user:
## - "aleksey": "jabber.ru"
## test:
## user_regexp: "^test"
## user_glob: "test*"
##
## Loopback network
##
loopback:
ip:
- "::"
### ============
### ACCESS RULES
access:
## Only accounts on the local ejabberd server can create Pubsub nodes:
pubsub_createnode:
local: allow
## In-band registration allows registration of any possible username.
## To disable in-band registration, replace 'allow' with 'deny'.
register:
all: allow
## Only allow to register from localhost
trusted:
loopback: allow
mod_register:
##
## Protect In-Band account registrations with CAPTCHA.
##
## captcha_protected: true
##
## Set the minimum informational entropy for passwords.
##
## password_strength: 32
##
## After successful registration, the user receives
## a message with this subject and body.
##
welcome_message:
subject: "Welcome!"
body: |-
Hi.
Welcome to this XMPP server.
##
## When a user registers, send a notification to
## these XMPP accounts.
##
## registration_watchers:
## - "admin1@example.org"
##
## Only clients in the server machine can register accounts
##
ip_access: trusted
##
## Local c2s or remote s2s users cannot register accounts
##
##access_from: allow
access: register
mod_roster: {}
mod_register_web: {}
mod_shared_roster: {}
mod_stats: {}
mod_time: {}
mod_vcard: {}
mod_version: {}