I have a claims auth site setup right now with both Windows & Forms. Providers are configured for LDAP auth. This works without an issue. I want users to be able to sign in to SharePoint using their username, aka, sAMAccountName. This also works, but I want to see the users display name in the upper corner of SharePoint while they are signed in. Here's my provider:
<add name="ldapMembership" type="Microsoft.Office.Server.Security.LdapMembershipProvider, Microsoft.Office.Server, Version=18.104.22.168, Culture=neutral, PublicKeyToken=71e9bce111e9429c" server="cncydev.cncy.com" port="389" useSSL="false" userDNAttribute="distinguishedName" userNameAttribute="sAMAccountName" userContainer="CN=Users,DC=cncy,DC=com" userObjectClass="person" userFilter="(ObjectClass=person)" scope="Subtree" otherRequiredUserAttributes="sn,givenname,cn,mail,distinguishedName" />
My impression is that the
userDNAttribute controls the display name of what shows in SharePoint, but this property never seems to make a difference. I've also seen
useDNAttribute="true", but that doesn't get respected either. For the property I want to display, does it need to be mapped to a SharePoint user profile property?