to begin I’m sorry, Im french and I don’t speak english very well.
For my work placement, I work with OpenFire. I must create a log with all connections (success and failure) at OpenFire. Connections are record in a MySQL Database.
I have developped three methods in LocalClientSession.java (org.jivesoftware.openfire.session) to give date creation of session, the id session and the IP adress of the client (with the object Connection).
Now, I want to give the UserName and Password used to try a connection but I don’t find how to do. For user name I have used session.getUserName() at the follow of my code for give date, id and ip adress but it return “null” and the exception UserNotFoundException, I don’t understand… For password I haven’t found method. Is it possible?
I continue my search, if you have an idea help me please.