User registration

I am trying to register a user and I keep getting the error 'User john@chat.server already registered at node ejabberd@localhost'. None of the users I am trying to register are actually registered. I user PAM for authentication and have a Postgres DB setup as well. Is there something that I could be missing?

I can post my config file if it is necessary or you think it would help

so I have found that if I

so I have found that if I change my config file to use only ODBC it will work fine.

##auth_method: [odbc, pam]
auth_method: odbc

The problem is that I want to use PAM as well. Any suggestions?

pam backend is read-only. You

pam backend is read-only. You can only authenticate with it. ejabberd does not have the right to add users when you use that.

So there is no way to

So there is no way to register the users against the server as they log in?

Say I have a authentication server with 10k users on it and that the PAM module points to it, only 500ish will ever use chat. Everytime a user logs onto chat for the first time, it registers the account on the ejabberd server. This way when I have other applications call 'ejabberdctl registered-users' it only gives the 500 or so that use chat rather than the 10k.
Is this possible in any way?

Hello, No this is no how it

Hello,

No this is no how it works. When you delegate authentication to PAM, user are not created / copied in database. It is queried each time authentication is needed.

OK Thanks. I will have to

OK Thanks. I will have to make some changes on our end.

Syndicate content