Really strange one hehe... I can query alot of other attributes, but when querying postOfficeBox, it throws an error. Example:

 Code:
BREAK ON
SETOPTION("WrapAtEOL", "ON")
CALL "@SCRIPTDIR\fnLDAPQuery.kix"

$Attributes = "sAMAccountName", "displayName", "Title", "Company", "streetAddress", "postalCode", "postOfficeBox"
$ADPath = "LDAP://"+GetObject("LDAP://rootDSE").Get("defaultNamingContext")
$Filter = "(&(objectCategory=person)(objectClass=user))"

$Results = fnLDAPQuery($Attributes, $ADPath, $Filter)
? "@ERROR | @SERROR"

FOR $c = 0 TO UBOUND($Results)
    FOR $r = 0 TO UBOUND($Results,2)
        ? $Results[$c,$r]
    NEXT
    ? ""
NEXT

Would be interesting to see if anyone else gets the same result!
_________________________
The tart is out there