Page 1 of 1 1
Topic Options
#189298 - 2008-08-27 05:01 PM Querying for LDAP attribute postOfficeBox gives error using fnLDAPQuery()
masken Offline
MM club member
*****

Registered: 2000-11-27
Posts: 1222
Loc: Gothenburg, Sweden
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

Top
#189300 - 2008-08-27 05:18 PM Re: Querying for LDAP attribute postOfficeBox gives error using fnLDAPQuery() [Re: masken]
masken Offline
MM club member
*****

Registered: 2000-11-27
Posts: 1222
Loc: Gothenburg, Sweden
Solved... for some reason this attribute returns as an array - 8204 (Array of variants).

I KiX too seldom nowadays :p


Edited by masken (2008-08-27 05:18 PM)
_________________________
The tart is out there

Top
Page 1 of 1 1


Moderator:  Shawn, ShaneEP, Ruud van Velsen, Arend_, Jochen, Radimus, Glenn Barnas, Allen, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 456 anonymous users online.
Newest Members
M_Moore, BeeEm, min_seow, Audio, Hoschi
17883 Registered Users

Generated in 0.053 seconds in which 0.026 seconds were spent on a total of 13 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org