Hi Eugene,
Thank you for your reply. However, I can login to Adaxes server with my account and I can view, edit, add business unit without any issues. So, I don't think there is a permission issue with my account. I try to run the script below again, and still get the same "object does not exist" error message:
[Reflection.Assembly]::LoadWithPartialName("Softerra.Adaxes.Adsi")
$username = "myusername"
$password = "mypassword"
$_clientmangersdn = "CN=demo_client_managers,OU=Security,OU=DEMO,OU=Clients,DC=domain,DC=lan"
$_clientusersou = "OU=Users,OU=DEMO,OU=Clients,DC=domain,DC=lan"
$_clientsecurityou = "OU=Security,OU=DEMO,OU=Clients,DC=domain,DC=lan"
# Connect to the Adaxes service
$admNS = New-Object "Softerra.Adaxes.Adsi.AdmNamespace"
$admService = $admNS.GetServiceDirectly("adaxesserver.domain.lan")
# Bind to AD objects
$_adx_clientmanagersdn = $admService.OpenObject("Adaxes://$_clientmangersdn", $NULL, $NULL, 0)
$_adx_clientusersou = $admService.OpenObject("Adaxes://$_clientusersou", $NULL, $NULL, 0)
$_adx_clientsecurityou = $admService.OpenObject("Adaxes://$_clientsecurityou", $NULL, $NULL, 0)
Also try with username/password
$_adx_clientmanagersdn = $admService.OpenObject("Adaxes://$_clientmangersdn", $username, $password, 0)
$_adx_clientusersou = $admService.OpenObject("Adaxes://$_clientusersou", $username, $password, 0)
$_adx_clientsecurityou = $admService.OpenObject("Adaxes://$_clientsecurityou", $username, $password, 0)
However, it still doesn't work. Any ideas?
Thanks,