Roster gets deleted

First time login, it shows the contact list for the transports - msn and aim, next time when you login back all the contacts are deleted from the roster.

Why is the roster getting empty ?
OS : centos ejabber 1.1.4

?

Yes, the version is 1.1.4.

Yes, the version is 1.1.4.
This is fresh install not upgraded.
The problem was reported after integration of shared roster. I would say the problem is similar to Evadim.

Anonymous registration is enabled by default. ejabber.cfg does not contain any entry for that.

What should I add in the configuration to disable anonymous registration? Please advice …

I did more research on this. To get the roster back I had to:

1. Delete the msn and aim contact from the roster.
2. Restart the roster module from admin interface.
3. Recreate the JID.
4. Re signup for the transport.
5. All the contacts are added back.

Clarification of option 'anonymous'

ashish wrote:

Anonymous registration is enabled by default. ejabber.cfg does not contain any entry for that.

What should I add in the configuration to disable anonymous registration?

Maybe I didn't explain correctly. The problem reported by Evadim only happens when ejabberd.cfg has 'anonymous' in the auth_method option, for example:

{auth_method, [internal, anonymous]}.

His problem is not related to account creation.

So, your problem seems different and unrelated.

how to disable registration

Ok, I need to know how to disable registration from Pandion/PSI.

Currently it is enabled, with following in ejabber.cfg

[root@jabber conf]# grep auth ejabberd.cfg
{auth_method, internal}.
% For LDAP authentication use these lines instead of above one:
%{auth_method, ldap}.
% For authentication via external script use the following:
%{auth_method, external}.
%{extauth_program, "/path/to/authentication/script"}.
% For authentication via ODBC use the following:
%{auth_method, odbc}.
%% auth_method: anonymous
%%{host_config, "public.example.org", [{auth_method, anonymous},
%% To use both anonymous and internal authentication:
%%{host_config, "public.example.org", [{auth_method, [anonymous, internal]}]}.

Check the ejabberd Guide

ashish wrote:

Ok, I need to know how to disable registration from Pandion/PSI.

Currently it is enabled, with following in ejabber.cfg
# grep auth ejabberd.cfg
{auth_method, internal}.

Read in the ejabberd Guide the documentation about the module mod_register.

Evadim linked to a problem

Evadim linked to a problem that looks very similar.

Did you enable the 'anonymous' authentication method in ejabberd.cfg?

When did ejabberd start to act strangely? Maybe when you updated ejabberd to a newer version? Or when you modified ejabberd.cfg? ...

Are you sure you are running ejabberd 1.1.4, and not 2.0.0?

I ask because the problem that Evadim reported is present in 2.0.0, when enabling 'anonymous'. And I want to know if your problem is related to him or if it's completely different.

Syndicate content