query = "SELECT adspath,firstname,sn,cn,companyname
FROM 'LDAP://IPAddress:PORT/o=MTCentral/ou=members' WHERE
cn='*' order by adspath"
set obj_connection = Server.createObject
("ADODB.Connection")
obj_connection.Provider = "ADsDSOObject"
obj_connection.open "Active Directory
Provider", "cn=administrator,ou=members,o=mtcentral", "pass
word"
set obj_command = Server.CreateObject("ADODB.Command")
obj_command.ActiveConnection = obj_connection
obj_command.CommandText = query
set obj_rs = obj_command.execute
do while not obj_rs.eof
response.write obj_rs("adspath") & " " & obj_rs
("firstname") &"<br>"
obj_rs.movenext
loop
Thanks
Aaron
Björn Jansson
"Aaron Kaufman" <aa...@ajkc.com> skrev i meddelandet
news:11c301c0fa6f$1bc0ade0$b1e62ecf@tkmsftngxa04...