UserLogin seeding and passwords

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

UserLogin seeding and passwords

Stephen Rufle-2
How would I generate the hash values for currentPassword on the
UserLogin entity. I was trying to create a user login but set
currentPassword to a plaintext value. When I then tried login I get
"Password incorrect.", I think this is because I did not hash the password.

Is there an external utility that I could use to get the hashed value
for the password?

Reply | Threaded
Open this post in threaded view
|

Re: UserLogin seeding and passwords

David E Jones-3

I personally just use OFBiz itself for this (preferably a local  
instance as it is more secure, but it can be done on the demo server  
too). Just create a new user, with the password you want, and then  
look in the database (can be done with the WebTools Entity Data  
Maintenance screens) to get the hashed value for the password.

-David


On Mar 31, 2009, at 2:47 PM, Stephen Rufle wrote:

> How would I generate the hash values for currentPassword on the
> UserLogin entity. I was trying to create a user login but set
> currentPassword to a plaintext value. When I then tried login I get
> "Password incorrect.", I think this is because I did not hash the  
> password.
>
> Is there an external utility that I could use to get the hashed value
> for the password?
>

Reply | Threaded
Open this post in threaded view
|

Re: UserLogin seeding and passwords

Stephen Rufle-2
That is exactly what I did :). I was thinking further ahead when we need
to migrate a bunch of users over to our system. My thoughts after
looking further into the code are that, we could use a list of userId's
with a mapping to the partyId they are and just call createUserLogin in
a loop of some sort.

Thanks for the feedback.

David E Jones wrote:

>
> I personally just use OFBiz itself for this (preferably a local
> instance as it is more secure, but it can be done on the demo server
> too). Just create a new user, with the password you want, and then
> look in the database (can be done with the WebTools Entity Data
> Maintenance screens) to get the hashed value for the password.
>
> -David
>
>
> On Mar 31, 2009, at 2:47 PM, Stephen Rufle wrote:
>
>> How would I generate the hash values for currentPassword on the
>> UserLogin entity. I was trying to create a user login but set
>> currentPassword to a plaintext value. When I then tried login I get
>> "Password incorrect.", I think this is because I did not hash the
>> password.
>>
>> Is there an external utility that I could use to get the hashed value
>> for the password?
>>
>
>
>

--
Stephen P Rufle
[hidden email]
H1:480-626-8022
H2:480-802-7173
Yahoo IM: stephen_rufle
AOL IM: stephen1rufle