Hi,

Ok, I investigate the Provider code and as I think find a bug.

Function ValidateUser call CheckPassword, which include the following code

...
GetPasswordWithFormat(username, updateLastLoginActivityDate, out status,  
out passwdFromDB, out passwordFormat, out salt, out  
failedPasswordAttemptCount, out failedPasswordAnswerAttemptCount, out  
isApproved, out lastLoginDate, out lastActivityDate);

             if (status != 0)
             {
                 return false;
             }

...


If we take a look on GetPasswordWithFormat code we may find that it  
determine

status = -1;

for all possible cases.

So, any call for ValidateUser return false.


As I'm new in Net, may anybody explain me how I may replave dll in GAC by  
new one?

I try to use gacutil, but its fail with comments that  
FirebirdSql.Web.Providers is used by some application.
At the same time I do not have any running application in the moment.

Best regards,
Valery





On Tue, 24 Jul 2007 11:06:37 +0500, zakharov <[EMAIL PROTECTED]> wrote:

> Hi
>
> I try to use MembershipProvider in web project and has the following
> strange result:
> I can manager accounts as admin, but if I use asp Login from the page I
> always receive "login failed".
>
> I even create the simplest project with login form  and destination form,
> but results are the same.
>
> In order to be exact here is my actions step by step:
>
> 1) prepare database test.fdb using FbMembershipProvider1.5.sql
> 2) create new web project with 2 pages, on first page asp:Login, on  
> second
> page asp:label
> 3) add web.config to the project and tune it as following:
> <connectionStrings>
>        <add name="Test" connectionString="character set=NONE;data
> source=localhost;initial
> catalog=C:\TestWeb\WebSite1\App_Data\test.fdb;user
> id=SYSDBA;password=masterkey"
>              providerName="FirebirdSql.Data.FirebirdClient"/>
>     </connectionStrings>
>
>        <compilation debug="true">
>          <assemblies>
>            <add assembly="FirebirdSql.Data.FirebirdClient,  
> Version=2.1.0.0,
> Culture=neutral, PublicKeyToken=3750abcc3150b00c"/>
>            <add assembly="FirebirdSql.Web.Providers, Version=2.1.0.0,
> Culture=neutral, PublicKeyToken=3d06a02581b682f8"/>
>          </assemblies>
>        </compilation>
>
>       <authentication mode="Forms">
>          <forms loginUrl="Default.aspx" />
>        </authentication>
>        <membership defaultProvider="TestPrv">
>          <providers>
>            <clear/>
>            <add name="TestPrv"
>                 type="FirebirdSql.Web.Providers.FbMembershipProvider"
>                 connectionStringName="Test"
>                 enablePasswordRetrieval="false"
>                 enablePasswordReset="false"
>                 minRequiredNonalphanumericCharacters="0"
>                 minRequiredPasswordLength="3"
>                 requiresQuestionAndAnswer="false"
>                 requiresUniqueEmail="false"
>                 passwordFormat="Clear"
>                 commandTimeout="120"
>
>                 />
>          </providers>
>        </membership>
>
> 4) Open ASP.Net Configuration and add a user.
> 5) Check in test database that it was created.
>
> Start application.
> Any attempt to login return login failed.
> Check database record directly and see that LASTACTIVEDATE and
> LASTLOGINDATE are updating by the values equal to my attempts to login.
>
>
> Does anybody knows where is a problem.
>
> Best regards,
> Valery
>
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Splunk Inc.
> Still grepping through log files to find problems?  Stop.
> Now Search log events and configuration files using AJAX and a browser.
> Download your FREE copy of Splunk now >>  http://get.splunk.com/
> _______________________________________________
> Firebird-net-provider mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/firebird-net-provider
>




-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
Firebird-net-provider mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/firebird-net-provider

Reply via email to