Fatal bug in OracleMembershipProvider

Discussion of open issues, suggestions and bugs regarding ADO.NET provider for Oracle
Post Reply
Alladin
Posts: 149
Joined: Mon 27 Nov 2006 16:18
Contact:

Fatal bug in OracleMembershipProvider

Post by Alladin » Wed 03 Mar 2010 15:15

OracleMembershipProvider is unusable.

var u = Membership.Provider.CreateUser("User1", "MyPassword77", "[email protected]", "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.

StanislavK
Devart Team
Posts: 1710
Joined: Thu 03 Dec 2009 10:48

Post by 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.

Alladin
Posts: 149
Joined: Mon 27 Nov 2006 16:18
Contact:

Post by 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?

StanislavK
Devart Team
Posts: 1710
Joined: Thu 03 Dec 2009 10:48

Post by 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.

Post Reply