I have converted and extended the adfunctions.au3 written by Jonathan Clelland to a full AutoIt UDF including help file, examples, ScITE integration etc.
The example scripts should run fine without changes.
2014-02-17: Version: 188.8.131.52 (bug fixes)
As always: Please test before using in production!
Needs to be run with AutoIt 184.108.40.206 or later!
KNOWN BUGS: (Last changed: 2014-03-12)
- Functions _AD_HasxxxxRights always return the wrong result. Workaround is to change all occurrences of lineto_AD_HasRequiredRights($sObject, $ADS_xxxx, $sUser = @UserName)Thanks to user denisaurus for pointing me to this bug!_AD_HasRequiredRights($sObject, $ADS_xxxx, $sUser)
- Funktion _AD_IsMemberOf doesn't check the PrimaryGroup for nested groups when $bIncludePrimaryGroup = True and $bRecursive = True. ReplacewithIf _AD_IsMemberOf($oMember.distinguishedName, $sObject, False, True, $iDepth - 1) Then Return 1Thanks to user Mahagon from the german forum for pointing me to this bug!If _AD_IsMemberOf($oMember.distinguishedName, $sObject, $bIncludePrimaryGroup, True, $iDepth - 1) Then Return 1
Edited by water, 12 March 2014 - 09:00 AM.