How to insert a user in program?

How to insert the encryptedPassword? or how to convert plain password into encryptedPassword?

Hi LordElwin,

Wildfire uses an implementation of Blowfish algorithm written by Markus Hahn to encrypt/decrypt passwords. So, the easiest way convert a password into an excrypted password (and back again) is to use Wildfires AuthFactory #encryptPassword and #decryptPassword methods. You can see examples of how this is done in the DefaultUserProvider class.

Hope that helps,

Ryan

thx

I’‘m new to Wildfire but am familiar with the jabberd since 1.3. For various reasons I’'ve pretty much decided to move to Wildfire. The biggest problem I have is the ability to add users outside of Wildfire. I want this system to be closed so that I can control user registration. In order to do this I need access to the Wildfire passwordKey property. Is there a way I can set the passwordKey?

Hi Dan,

You can get the password key using the Wildfire API by calling “JiveGlobals.getProperty(“passwordKey”);” or you can look it up in the databas in the jiveProperty table.

Hope that helps,

Ryan