Here is a littoral translation of the sample code into KiXtart, however I don't have anything to test on here:

Code:
; Build the LDAP search condition...
$vSearch = "(sn=Leeds)"

; Instantiate the connection and log in to OpenLDAP
$oConn=CreateObject("ADODB.Connection")
$oConn.Provider = "ADsDSOObject"
$oConn.Open("ADs Provider", "cn=mail_verify,ou=accounts,dc=mckee,dc=com", "mypassword")

; Execute the search...
$oRS=$oConn.Execute("<LDAP://leconte/dc=com/dc=mckee>;" + $vSearch + ";cn,mail")
; Create an array of returned values
$vCount = 1
While Not $oRS.EOF
For Each $vValue in $oRS.Fields(0).value
"Got: "+$vValue ?
Next

$oRS.MoveNext
Loop
Exit 0