vu3lmg
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@CompNam e.Com BUT I am not able to logon using CompName\FirstName.LastNam e .
What am I missing in the application ?
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@CompNam
What am I missing in the application ?
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Following is my provider string for membership
<membership defaultProvider="MyADMembe rshipProvi der">
<providers>
<clear/>
<add name="MyADMembershipProvid er" type="System.Web.Security. ActiveDire ctoryMembe rshipProvi der, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d 50a3a" connectionStringName="ADCo nnectionSt ring" attributeMapUsername="sAMA ccountName "/>
<membership defaultProvider="MyADMembe
<providers>
<clear/>
<add name="MyADMembershipProvid
for example my network is windows8tips.local
windows8tips\FirstName.Las
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.