Link to home
Start Free TrialLog in
Avatar of vu3lmg
vu3lmgFlag for United States of America

asked on

asp:Login works with Windows users email address only

I have an ASP.NET application in C#.
I am using Forms Authentication with AD.

My login screen uses .NET provieded <asp:Login> control.
I am able to logon using user name ase FirstName.LastName@CompName.Com BUT I am not able to logon using CompName\FirstName.LastName .
What am I missing in the application ?
Avatar of David Johnson, CD
David Johnson, CD
Flag of Canada image

CompName\FirstName.LastName try networkname\FirstName.LastName
for example my network is windows8tips.local
windows8tips\FirstName.LastName works as does FirstName.LastName@windows8tips.local


Computername is only applicable for local users and not AD users. and it has to be the computer that the iis server is running on to get the authentication records.
If the website is used in an intranet with domain users, then you shouldn't be using forms authentication.  You should use Windows Integrated Authentication in IIS.  Is this an intranet application?
ASKER CERTIFIED SOLUTION
Avatar of vu3lmg
vu3lmg
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 vu3lmg

ASKER

Following is my provider string for membership

<membership defaultProvider="MyADMembershipProvider">
      <providers>
      <clear/>
            <add name="MyADMembershipProvider" type="System.Web.Security.ActiveDirectoryMembershipProvider, System.Web, Version=2.0.0.0,  Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" connectionStringName="ADConnectionString"                          attributeMapUsername="sAMAccountName"/>