Extension rule - csentry for AD disinguishedName RRS feed

  • Question

  • I have to write rules based on the csenty of the distinguishedName of the accounts in AD.

    for example -  distinguishedName contains OU=XYZ, do this. if DN conatins OU=abc, do this.something like

    if(csentry["DistinguishedName"].value.contains("ou=users")){ do this}

    Can someone help me in how to use contains function for DN csentry? Also, do I have to flow the distinguishedName in attribute flow? I don't need to pass this to MV. Just need to read the value of DN and calculate values based on that.


    Friday, March 4, 2016 1:43 AM


  • Use the CSEntry.DN property. You can either iterate through the components and test them or you can just do a csentry.DN.ToString().Contains("OU=Users") test.


    Consulting | Blog | AD Book

    • Proposed as answer by UNIFYBobMVP Monday, March 7, 2016 11:19 AM
    • Marked as answer by fim_sc Monday, March 7, 2016 2:21 PM
    Friday, March 4, 2016 5:56 PM