Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. Active Directory Users List - Reg

Active Directory Users List - Reg

Scheduled Pinned Locked Moved ASP.NET
csharpwindows-adminhelp
1 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    sasidar_d
    wrote on last edited by
    #1

    Hi , I need to extract the active directory userlist (Windows Login ID ). i am new to active directory users list. I have used the System.Directories dll to extract the information. Below ismy code snippet. The code is written in VB.Net web application. Dim searchRoot As New DirectoryEntry("LDAP://TESTLAB") Dim search As DirectorySearcher = New DirectorySearcher(searchRoot) search.Filter = "(&(objectClass=user)(objectCategory=person))" search.PropertiesToLoad.Add("sAMAccountname") Dim result As SearchResult For Each result In search.FindAll() Response.Write(result.Properties("sAMAccountName")(0)) Response.Write(" ") Next `When i execute the above code , i am not able to get the list of windows user id. Can anyone help me out for this , Thanks in advance Sasidar`

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups