AD & ADSI入门[4]

[入库:2005年8月18日] [更新:2007年3月24日]

本文简介:选择自 mittermeyer 的 blog

   
    set ocommand = new adodb.command
    with ocommand
        .activeconnection = sconnectionstr
        .commandtimeout = 15
        .commandtext = "select name,description from 'ldap://" & m_sdomain _
                        & "' where objectcategory='group'"
        debug.print .commandtext
        .properties("searchscope") = ads_scope_subtree
        .properties("chase referrals") = ads_chase_referrals_external
        set oresult = .execute
    end with
    if not oresult is nothing then
        do until oresult.eof
            debug.print oresult("name"), oresult("description")(0)
           
oresult.movenext
        loop
    end if

本文关键:AD,ADSI,VB
 

本站最佳浏览方式为 分辨率 1024x768 IE 6.0(或更高版本的 IE浏览器)

go top