C
Craig Wagner
In all the documentation I've read, the default behavior for ValidateUser on
the ActiveDirectoryMembershipProvider is that user names must be in
username@domain format.
My web.config contains:
<membership defaultProvider="AspNetActiveDirectoryMembershipProvider">
<providers>
<add name="AspNetActiveDirectoryMembershipProvider"
type="System.Web.Security.ActiveDirectoryMembershipProvider...
connectionStringName="ADService"
/>
</providers>
</membership>
I have tried calling ValidateUser with (e-mail address removed),
stockamp\craig_wagner, and craig_wagner and all three return false,
indicating that my credentials are invalid.
When I change my web.config to the following then, as expected, I can use
craig_wagner and authenticate.
<membership defaultProvider="AspNetActiveDirectoryMembershipProvider">
<providers>
<add name="AspNetActiveDirectoryMembershipProvider"
type="System.Web.Security.ActiveDirectoryMembershipProvider...
connectionStringName="ADService"
attributeMapUsername="sAMAccountName"
/>
</providers>
</membership>
Any idea what I should look for to try to determine why the initial case is
not authenticating with (e-mail address removed)?
the ActiveDirectoryMembershipProvider is that user names must be in
username@domain format.
My web.config contains:
<membership defaultProvider="AspNetActiveDirectoryMembershipProvider">
<providers>
<add name="AspNetActiveDirectoryMembershipProvider"
type="System.Web.Security.ActiveDirectoryMembershipProvider...
connectionStringName="ADService"
/>
</providers>
</membership>
I have tried calling ValidateUser with (e-mail address removed),
stockamp\craig_wagner, and craig_wagner and all three return false,
indicating that my credentials are invalid.
When I change my web.config to the following then, as expected, I can use
craig_wagner and authenticate.
<membership defaultProvider="AspNetActiveDirectoryMembershipProvider">
<providers>
<add name="AspNetActiveDirectoryMembershipProvider"
type="System.Web.Security.ActiveDirectoryMembershipProvider...
connectionStringName="ADService"
attributeMapUsername="sAMAccountName"
/>
</providers>
</membership>
Any idea what I should look for to try to determine why the initial case is
not authenticating with (e-mail address removed)?