|
|
|||||||
Hi, Is it possible to extract the Description from all users in AD that are in a specific OU. I tried it with fnLDAPQuery(), but receive the following message "ERROR: Error in expression: this type of array not supported in expressions.!" I use the following code Code: $aAttributes = "Name", "description" $sADsPath = "LDAP://OU=user OU,OU=location OU,DC=domain,DC=com" $strFilter = "(&(objectClass=User)(Name=*))" $aResults = fnLDAPQuery($aAttributes,$sADsPath,$strFilter,"Name") @ERROR " | " @SERROR ? For $c = 0 to Ubound($aResults) For $r = 0 to Ubound($aResults,2) $aResults[$c,$r] ? Next ? Next Am I doing something wrong? Can it be done with fnLDAPQuery() and how? |
||||||||
|
|
|||||||
Change this line Code: $aResults[$c,$r] ? Code: VarTypeName($aResults[$c,$r]) ? Glenn |
||||||||
|
|
|||||||
Great problem solved. Thanks |