From the Admin Guide section on Active Directory:
Log on with simple username instead of fully qualified nameYour users might prefer logging on with just the user name rather than the fully qualified name. That is, instead of typing
Roger@mydomain.techinfosystems.com, you enter Roger. To enable this feature, add the attributeMapUsername to the membership configuration:
Code:<membership defaultProvider="AspNetActiveDirectoryMembershipProvider">
<providers>
<add name="AspNetActiveDirectoryMembershipProvider" type="System.Web.Security.ActiveDirectoryMembershipProvider, System.Web,Version=2.0.0.0,Culture=neutral,PublicKeyToken=b03f5f7f11d50a3a"
connectionStringName="ADConnection" enableSearchMethods="true" attributeMapUsername="sAMAccountName" />
</providers>
</membership>
By setting attributeMapUsername to sAMAccountName, you can log on with just the username, such as Roger in the previous example.
Roger Martin
Creator and Lead Developer of Gallery Server Pro