Fatal bug in OracleMembershipProvider

Fatal bug in OracleMembershipProvider

Postby Alladin » Wed 03 Mar 2010 15:15

OracleMembershipProvider is unusable.

var u = Membership.Provider.CreateUser("User1", "MyPassword77", "bla@bla.com", "My Cat?", "Matroskin", true, null, out status);

var authentic = Membership.Provider.ValidateUser("User1", "MyPassword77");


Why authentic is false? Username & Passwords are correct.

PS. Checked with both stable & beta version of drivers...
Oracle 11G x64, Windows 7, VS.NET 2010 RC, .NET 4.
Alladin
 
Posts: 149
Joined: Mon 27 Nov 2006 16:18

Postby StanislavK » Wed 03 Mar 2010 17:26

Please check that the user is successfully created. In this case, 'status' should be equal to MembershipCreateStatus.Success, and the 'u' variable should not be null.

I couldn't reproduce the problem.
StanislavK
Devart Team
 
Posts: 1710
Joined: Thu 03 Dec 2009 10:48

Postby Alladin » Thu 04 Mar 2010 09:32

Machine Key was not set. Spend 2 days to find out why...

Could you guys kinda throw an exception if you cannot encode/decode password?
Alladin
 
Posts: 149
Joined: Mon 27 Nov 2006 16:18

Postby StanislavK » Thu 04 Mar 2010 14:55

If machineKey is not set, the password is being encoded using the defaults. This may lead to errors in credentials validation, as encryption algorithm may differ. But encoding itself is performed without errors, hence, there are no reasons to throw an exception.
StanislavK
Devart Team
 
Posts: 1710
Joined: Thu 03 Dec 2009 10:48


Return to dotConnect for Oracle