Erreur de syntaxe dans la fourniture de droits d'administrateur à un nouvel utilisateur dans ejabberd.ym

Deux dernières heures, j'ai essayé d'installer

Ejabberd

Serveur up. J'ai construit Edzhabberd

De la source

Parce que le paquet dans le référentiel ubuntu Contient une erreur. Quoi qu'il en soit après l'assemblage ejabberd De la source j'ai ajouté mon

FQDN

"s1.noureldin.local

"Dans mon fichier /etc/ejabberd/ejabberd.yml.

.
.
## - "example.org"
##
hosts:
- "localhost"
- "s1.noureldin.local"
##
## route_subdomains: Delegate subdomains to other XMPP servers.
.
.

et puis j'ai créé

Nouvel utilisateur

:

ejabberdctl register admin1 s1.noureldin.local P@s5W0rd

Ensuite, j'ai essayé de me connecter à mon serveur xmpp, et il

travaillé

!

À présent

PROBLÈME

vient quand j'essaie

Donnez à ce nouveau droit de l'administrateur utilisateur

, ejabberd ne peut plus être lancé et

J'ai toujours une erreur de syntaille dans le journal

:

2016-07-12 12:00:10.733 [info] <0.7.0> Application lager started on node ejabberd@localhost
2016-07-12 12:00:10.977 [info] <0.7.0> Application crypto started on node ejabberd@localhost
2016-07-12 12:00:11.022 [info] <0.7.0> Application sasl started on node ejabberd@localhost
2016-07-12 12:00:11.084 [info] <0.7.0> Application asn1 started on node ejabberd@localhost
2016-07-12 12:00:11.084 [info] <0.7.0> Application public_key started on node ejabberd@localhost
2016-07-12 12:00:11.146 [info] <0.7.0> Application ssl started on node ejabberd@localhost
2016-07-12 12:00:11.171 [info] <0.7.0> Application fast_yaml started on node ejabberd@localhost
2016-07-12 12:00:11.198 [info] <0.7.0> Application fast_tls started on node ejabberd@localhost
2016-07-12 12:00:11.219 [info] <0.7.0> Application fast_xml started on node ejabberd@localhost
2016-07-12 12:00:11.231 [info] <0.7.0> Application stringprep started on node ejabberd@localhost
2016-07-12 12:00:11.245 [info] <0.7.0> Application cache_tab started on node ejabberd@localhost
2016-07-12 12:00:11.687 [info] <0.7.0> Application mnesia started on node ejabberd@localhost
2016-07-12 12:00:14.902 [info] <0.7.0> Application inets started on node ejabberd@localhost
2016-07-12 12:00:14.904 [error] <0.37.0>@ejabberd_config:get_plain_terms_file:257 Cannot load //etc/ejabberd/ejabberd.yml: Syntax error on line 423 at position 3: did not find expected key

Voici mon ejabberd.yml, Vous pouvez voir toutes les syntaxes que j'ai essayées, mais sans succès:

.
.
.
max_fsm_queue: 1000

###. ====================
###' ACCESS CONTROL LISTS
acl:
##
## The 'admin' ACL grants administrative privileges to XMPP accounts.
## You can put here as many accounts as you want.
##
admin:
user:
- "admin1@s1.noureldin.local"
######## I TRIED THESE AS WELL ########
## - "admin1":"s1.noureldin.local"
## - "admin1@s1.noureldin.local"
##
## user: - "admin1@s1.noureldin.local"
## - user: "admin1@s1.noureldin.local"

## Blocked users
##
## blocked:
## user:
## - "baduser@example.org"
## - "test"

## Local users: don't modify this.
##
local:
user_regexp: ""

##
## More examples of ACLs
##
## jabberorg:
.
.
.

Et quand je recommande ces lignes, cela fonctionne à nouveau:

admin:
user:
- "admin1@s1.noureldin.local"

Quelqu'un peut-il m'aider à résoudre, s'il vous plaît? Je cherchais Internet et dans ejabberd doc, Toutes les personnes utilisaient la même syntaxe que moi, mais il a travaillé avec eux.

Merci en avance.
Invité:

Blanche

Confirmation de:

Ok, j'ai trouvé une erreur.

ejabberd.yml

déposer

Sensibilité aux espaces

!

et chacun

sub config Doit avoir deux espaces plus que son parent

, Donc, ma configuration sera:

acl:
##
## The 'admin' ACL grants administrative privileges to XMPP accounts.
## You can put here as many accounts as you want.
##
admin:
user:
- "admin1@s1.noureldin.local"
## - "aleksey@localhost"
##
## Blocked users

Ou plus précisément:

acl:   
admin:
user:
- "admin1@s1.noureldin.local"

Pour répondre aux questions, connectez-vous ou registre