Forum Discussion

James_W's avatar
James_W
Copper Contributor
Jan 02, 2019
Solved

Azure Advanced Thread Protection Sensor service failed to start multi-forest DC

I have had this running on the primary domain with 4 sensors working fine for a week.  I have now attempted to add a new domain from another forest and Sensor repeatedly fails to start logging the fo...
  • James_W's avatar
    James_W
    Jan 04, 2019

    Tried the Quarantine bit and no change.  Then tried many things that would add no value to this post  so will leave them out and I will skip to the revelation... Started playing with Powershell trying to reproduce the error and  oddly the same .NET libraries which were failing worked fine 

     

    [System.Reflection.Assembly]::LoadWithPartialName("System.DirectoryServices.Protocols")

    [System.Reflection.Assembly]::LoadWithPartialName("System.Net")

     

    $cred = Get-Credential

    $connLmk = New-Object System.DirectoryServices.Protocols.LdapConnection "DomainName"

    $connLmk.Bind($cred)

     

    Then conversations with a colleague led us down the path to requiring Kerberos (which makes some sense in a security product)… The default behavior of the library is to negotiate... Adding

     

    $connLmk.AuthType = 'Kerberos'

     

    Reproduced the error we were seeing in the Sensor logs.  So now the question was why Kerberos was not working over the trust which was up and valid and working fine with NTLM... After reading a lot I decided to take a shortcut and changed the trust type to a Forest Trust because in my case the trusted domain was a single domain forest so no real difference.  

     

    Once I made that change both my repo and the sensor started working.

     

     

Resources