FIX: Incorrect group members are obtained when you run the xp_logininfo stored procedure in SQL Server 2012 or SQL Server 2014

Applies to: SQL Server 2012 DeveloperSQL Server 2012 EnterpriseSQL Server 2012 Standard

Symptoms


Assume that you have a group on a global controller that has the same name as a group on a domain. When you run the xp_logininfo stored procedure in Microsoft in SQL Server 2012 or SQL Server 2014 to obtain information about the group, the information contains members of the wrong group.

For example, you have a forest, forest1.contoso.com, that contains two domains, dom1 and dom2.

Notes
  • There is a trust between the domains.
  • Both domains have a group that is named grp1.
  • Both domains have a login that is named login1.


You run the following in dom1:

EXEC xp_logininfo 'dom2\grp1','members'

In this situation, you get the following incorrect results.

account nametypeprivilegemapped login namepermission path
dom1\login1useruserdom1\login1dom2\grp1


Typically, you would expect the following results.

account nametypeprivilegemapped login namepermission path
dom2\login1useruserdom2\login1dom2\grp1

Status


Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.

References


Learn about the terminology that Microsoft uses to describe software updates.