Hallo zusammen,
stehe gerade vor einen kleinen Problem,
wie finde ich bei _ADDeleteObject die UserOU herraus?
Wenn ich im Script schreibe: _ADDeleteObject("OU=CO-CP,OU=CO,OU=Accounts,DC=XXXXX,DC=XXXX",$user, "user") funktioniert es. Ich möchte aber das er automatisch die OU findet
weiteres siehe ADfuntions.au3
Func _ADDeleteObject($ou, $object, $type)
If StringLeft($object, 3) <> "CN=" Then
$object = "CN=" & StringReplace($object, ",", "\,")
EndIf
$ObjOU = ObjGet("LDAP://" & $strHostServer & "/" & $ou)
$objOU.Delete ($type, $object)
$ObjOU = 0
Return 1
EndFunc ;==>_ADDeleteObject
Hoffe ihr könnt mir helfen...