How to access/sync a user certificate subject cn with AD MA?

Steven Johnson 21 Reputation points
2021-10-27T23:06:32.22+00:00

I've been asked to sync the user certificate subject cn values from AD domains to AD LDS. Is it possible to access this value with the AD MA? If so, how?

Thanks.

Microsoft Identity Manager
Microsoft Identity Manager
A family of Microsoft products that manage a user's digital identity using identity synchronization, certificate management, and user provisioning.
610 questions
0 comments No comments
{count} votes

Accepted answer
  1. Martin Rublik 316 Reputation points
    2021-10-28T12:50:07.897+00:00

    Not sure if I understand 100% percent, but if I understood correctly you need to:

    1. get user certificate from userCertificate attribute,
    2. parse it
    3. extract subject filed, and use CN component

    You won't be able to this alone by using AD MA only, you'll need to create an advanced rule that would do the application logic for you (e.g. you need a management agent extension where you would load the userCertificate and parse it using .NET X509Certificate2 class see https://learn.microsoft.com/en-us/dotnet/api/system.security.cryptography.x509certificates.x509certificate2.subjectname?view=net-5.0 for more info)

    Another way to do this would be with powershell management agent where you might directly access the .NET classes and extract necessary information.

    Both ways require some efforts and are not entirely straightforward.

    Martin


0 additional answers

Sort by: Most helpful