none
Accessing the origin DN from an MVEntry object RRS feed

  • Question

  • Hope this is the right alias...

    I'm trying to figure out the DN of where an object originates from within my extension and can't seem to find public access. Looking at the object in QuickWatch, I can see it in:

    ((Microsoft.MetadirectoryServices.Impl.ReadOnlyConnectorServices)((Microsoft.MetadirectoryServices.Impl.BaseMVServices)((Microsoft.MetadirectoryServices.Impl.MVEntryImpl)mventry).m_ProvisionerServices).m_rgConnectorServices[0]).m_pstrOriginalDN

    Example value: OU=Domain Controllers,DC=ContosoRead,DC=com

    However, because it is "Non-public" I am not access it.

    Anyone have any idea?

    Thank you,

    David


    David Downing

    Friday, November 11, 2016 4:20 PM

Answers

  • There is an attribute called DistinguishedName, it is not selected by default, so just select it in AD MA, then map it to a MV attribute

    MVEntry("DN").Value =  csentry.DN.ToString()


    Nosh Mernacaj, Identity Management Specialist


    • Edited by Nosh Mernacaj Friday, November 11, 2016 4:41 PM
    • Marked as answer by Dave Downing Friday, November 11, 2016 5:23 PM
    Friday, November 11, 2016 4:34 PM
  • Got it, the name is "<dn>" rather than "DN".  Thank you Nosh!


    David Downing

    • Marked as answer by Dave Downing Friday, November 11, 2016 5:23 PM
    Friday, November 11, 2016 5:23 PM

All replies

  • Hope this is the right alias...

    I'm trying to figure out the DN of where an object originates from within my extension and can't seem to find public access. Looking at the object in QuickWatch, I can see it in:

    ((Microsoft.MetadirectoryServices.Impl.ReadOnlyConnectorServices)((Microsoft.MetadirectoryServices.Impl.BaseMVServices)((Microsoft.MetadirectoryServices.Impl.MVEntryImpl)mventry).m_ProvisionerServices).m_rgConnectorServices[0]).m_pstrOriginalDN

    Example value: OU=Domain Controllers,DC=ContosoRead,DC=com

    However, because it is "Non-public" I am not access it.

    Anyone have any idea?

    Thank you,

    David


    David Downing

    Friday, November 11, 2016 4:12 PM
  • There is an attribute called DistinguishedName, it is not selected by default, so just select it in AD MA, then map it to a MV attribute

    MVEntry("DN").Value =  csentry.DN.ToString()


    Nosh Mernacaj, Identity Management Specialist


    • Edited by Nosh Mernacaj Friday, November 11, 2016 4:41 PM
    • Marked as answer by Dave Downing Friday, November 11, 2016 5:23 PM
    Friday, November 11, 2016 4:34 PM
  • How do I get the csentry for the MVEntry I'm currently processing?


    David Downing

    Friday, November 11, 2016 5:06 PM
  • 1- Get DN in advanced inbound flow and store into MV ("DN", for instance)

    2- If you want to use it on export to something, then, you have MVEntry("DN")

    Can you tell me what you are trying to accomplish, maybe it would be easier


    Nosh Mernacaj, Identity Management Specialist

    Friday, November 11, 2016 5:13 PM
  • Got it, the name is "<dn>" rather than "DN".  Thank you Nosh!


    David Downing

    • Marked as answer by Dave Downing Friday, November 11, 2016 5:23 PM
    Friday, November 11, 2016 5:23 PM
  • This is a duplicate with another post and it is answered already: https://social.technet.microsoft.com/Forums/en-US/fca833a0-7212-46cf-894c-52beaf484b2e/accessing-the-origin-dn-from-an-mventry-object?forum=ilm2

    Nosh Mernacaj, Identity Management Specialist

    • Proposed as answer by Nosh Mernacaj Friday, November 11, 2016 5:43 PM
    Friday, November 11, 2016 5:43 PM