How find computer in AD by "Verify Caller-ID" value

I need find computer in Active Directory using "Verify Caller-ID" value in c# aplication. My currently code:

var search = new DirectorySearcher(ldap, (string.Format("(&(objectCategory=computer)(verify caller-id=*{0}*))", "searchValue")));

2 answers

  • answered 2019-02-10 11:34 Theo

    The attribute Verify Caller-ID you see in the "Dial-In" page of the user dialog in Active Directory Users and Computers is called msNPCallingStationID in LDAP.
    msNPCallingStationID attribute

    Try

    var search = new DirectorySearcher(ldap, (string.Format("(&(objectCategory=computer)(msNPCallingStationID=*{0}*))", "searchValue")));
    

    Hope that helps

  • answered 2019-02-11 06:43 neon3k85

    I try, but not work. Currently my code looks like this:

    var search = new DirectorySearcher(ldap, (string.Format("(&(objectCategory=computer)(msNPCallingStationID=*{0}*))", "testValue")));
    

    And my configuration: LDPA Configuration