When I run Enable or Disable User account via the Microsoft AD Adapter version 20.16.03 on BAO 7.8.02, I get error messages saying that the
"dsmod failed:Value for 'Target object for this command' has incorrect format." and "Remote application exited with code: -2147024809".
I've tried to run the exact same dsmod command from the AD server itself and that works fine,
dsmod user "CN=FirstName LastName,CN=Users,DC=domainname,DC=comapnyname,DC=se" -disabled no
I also tried to use the Windows Command Adapter and the process :AutoPilot-AD-Utilities:Terminal:Windows Command.
I ran the dsmod command from there with the same target and it worked without any problem.
I should also mention that "Get User Information" works fine via the AD Adapter but Enable/Disable doesn't.
The target xml looks like below, replaced the real values with names:
the full adapter response looks like below:
<target-output host="18.104.22.168"> # (I replaced the ip address with a fictional)
<os-id>Windows Server 2008</os-id>
<command>dsmod user "CN=FirstName LastName,CN=Users,DC=domainname,DC=companyname,DC=se" -disabled no</command> # (replaced values with fictional)
<error>Exit code indicates error</error>
<line index="1">Copyright 2010 BMC Software Ltd, Version: 1.5 </line>
<line index="2">Connecting to remote service...</line>
<line index="3">Connected to remote host.</line>
<line index="4">dsmod failed:Value for 'Target object for this command' has incorrect format.</line>
<line index="5">type dsmod /? for help.</line>
<line index="6">Remote application exited with code: -2147024809 </line>
Does anyone know what the problem could be and how I can solve it?