Link to home
Start Free TrialLog in
Avatar of ExtremeFitness
ExtremeFitness

asked on

Unable to log into the Ms ASP.NET login control with my regular account.

I have webpage that uses the microsoft log in contol and the CreateuserWizard.

ASP.NET, Active Directory, Ms ASP.NET login control

If I try to logon using my regular logon account I am unable to logon.  If I create a user with the wizard it works not problem.

Any ideas what I am missing from my accoutn to allow me to log in?
I appear to be a member of the same groups in the Active directory, in fact everything looks the same.  Are there hidden properties I should look at?

Any ideas?
ASKER CERTIFIED SOLUTION
Avatar of Bob Learned
Bob Learned
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of ExtremeFitness
ExtremeFitness

ASKER

Form...
I have no rules that I am aware of???

Here is my web config

<?xml version="1.0"?>
<configuration  >
   
      <appSettings/>      
      
      <connectionStrings>
  <add name="ADConnectionString" connectionString="LDAP://extremefitness.local/CN=Users,DC=extremefitness,DC=local" />
  <add name="MyLocalSQLServer" connectionString="Initial Catalog=aspnetdb; data source=localhost;Integrated Security=SSPI;"
   providerName="System.Data.SqlClient" />
 </connectionStrings>

      <system.web>
        <compilation debug="true" strict="false" explicit="true" />
        <pages>
            <namespaces>
                <clear />
                <add namespace="System" />
                <add namespace="System.Collections" />
                <add namespace="System.Collections.Specialized" />
                <add namespace="System.Configuration" />
                <add namespace="System.Text" />
                <add namespace="System.Text.RegularExpressions" />
                <add namespace="System.Web" />
                <add namespace="System.Web.Caching" />
                <add namespace="System.Web.SessionState" />
                <add namespace="System.Web.Security" />
                <add namespace="System.Web.Profile" />
                <add namespace="System.Web.UI" />
                <add namespace="System.Web.UI.WebControls" />
                <add namespace="System.Web.UI.WebControls.WebParts" />
                <add namespace="System.Web.UI.HtmlControls" />
            </namespaces>
        </pages>

            <authentication mode="Forms">
                  <forms name=".ASPXAUTH"
    loginUrl="login.aspx"
    defaultUrl="default.aspx"
    protection="All"
    timeout="30" path="/"
    requireSSL="false"
    slidingExpiration="true"
    cookieless="UseDeviceProfile"
    enableCrossAppRedirects="false">
                        <credentials passwordFormat="SHA1" />
                  </forms>
            </authentication>

            <authorization>
                  <deny users="?" />
                  <allow users="*" />
            </authorization>

            <membership defaultProvider="MyADMembershipProvider">
                  <providers>
                        <add
       name="MyADMembershipProvider"
       attributeMapUsername="sAMAccountName"
       type="System.Web.Security.ActiveDirectoryMembershipProvider, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
       connectionStringName="ADConnectionString"
       connectionUsername="extremefitness.local\administrator"
       connectionPassword="xxxxx"/>
                  </providers>
            </membership>

    </system.web>
</configuration>

SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial