Hello,
Yes, here is a PowerShell example:
[Reflection.Assembly]::LoadWithPartialName("Softerra.Adaxes.Adsi")
$admNS = New-Object "Softerra.Adaxes.Adsi.AdmNamespace"
$admService = $admNS.GetServiceDirectly("localhost")
$user = $admService.OpenObject("Adaxes://CN=John Smith,CN=Users,DC=company,DC=com", $NULL, $NULL, 0)
$customAttributeValue = $user.Get("adm-CustomAttributeText1")
C#:
using Softerra.Adaxes.Interop.Adsi;
using Softerra.Adaxes.Adsi;
using Softerra.Adaxes.Interop.Adsi.PersistentObjects;
class Program
{
static void Main(string[] args)
{
AdmNamespace adsNS = new AdmNamespace();
IAdmService admService = adsNS.GetServiceDirectly("localhost");
IADs user = (IADs)admService.OpenObject(
"Adaxes://CN=John Smith,CN=Users,DC=company,DC=com", null, null, 0);
string customAttributeValue = (string)user.Get("adm-CustomAttributeText1");
}
}
Adaxes also provides XML API based on the SPML protocol.
For details, see http://adaxes.com/sdk/.