I still don't understand how to use this virtual root. I'm not understanding how I go about "Binding" to this virtual root. None of the examples show this.
The examples always show binding to a specific OU or account. I understand this. How do I bind to the virtual root?
Example from site:
`[Reflection.Assembly]::LoadWithPartialName("Softerra.Adaxes.Adsi")
$admNS = New-Object "Softerra.Adaxes.Adsi.AdmNamespace"
$admService = $admNS.GetServiceDirectly("localhost")
$searcher = $admService.OpenObject(
"Adaxes://OU=People,DC=company,DC=com", $NULL, $NULL, 0)
$searcher.SearchFilter = "(&(objectCategory=person)(objectClass=user)(department=Sales))"
$searcher.SearchScope = "ADS_SCOPE_SUBTREE"
try
{
$results = $searcher.ExecuteSearch()
foreach ($result in $results.FetchAll())
{
Write-Host $result.ADsPath
}
}
finally
{
$results.Dispose()
}`
The above example shows
$searcher = $admService.OpenObject( "Adaxes://OU=People,DC=company,DC=com", $NULL, $NULL, 0)
What would I bind to?