I think you don’'t understand what I mean.
My users are in an external database. Openfire have an read-only access to this database.
The authentication succeed all the time.
If the user already exists in Openfire, all things work.
If the user logon on Openfire for the first time (so, this user doesn’‘t exist in the internal Openfire database), the server give an random JID and ressource to him (and webadmin reports these users as anonymous users). If I manually create an account for this user in the webadmin and this user retry to connnect, it’'s working.
So, the problem seem to be the user creation within the internal database after a successfull external authentication when the user connects for the first time.