Active Directory and PrincipalPermission

后端 未结 2 388
感情败类
感情败类 2021-01-22 14:02

This is more of a curiosity than a request for help, but I noticed that when using PrincipalPermission and verifying a user is part of a specific group in Active Directory it wi

2条回答
  •  生来不讨喜
    2021-01-22 14:30

    The reason is guaranteed security. The samAccountName attribute is unique across all security principal objects in an NTDS domain. If other name attribute would be used instead an attacker could easily workaround security permission by creating other user/group with the same name in a different organizational unit or container.

提交回复
热议问题