Is there a .NET class that can parse CN= strings out of LDAP?

后端 未结 7 570
梦毁少年i
梦毁少年i 2020-12-17 18:15

I\'ve got a string that I\'m fetching from LDAP for Active Directory group membership and I need to parse it to check if the user is a member of the AD group. Is there a cl

7条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-12-17 18:54

    These are called distinguished names.

    CodeProject has a parser project that appears to do what you need: http://www.codeproject.com/KB/IP/dnparser.aspx

提交回复
热议问题