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. General Programming
  3. C#
  4. Active Directory Authentication(For Domain User)

Active Directory Authentication(For Domain User)

Scheduled Pinned Locked Moved C#
csharpdatabasewindows-adminsecuritytutorial
2 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.
  • C Offline
    C Offline
    CNewbie
    wrote on last edited by
    #1

    All, I need to perform a Computer query in AD, but I am unsure how to authenicate myself. A little background: 1). I am currently logged into a machine on the domain with my domain userID. 2). I have Admin rights to the Domain as it works perfectly with VBScript (without authentication), but not with C#. I read that SetPrincipalPolicy() would allow you to authenticate yourself without providing a Username and password, but I have yet to find a way to use it successfully. Does anyone have any ideas? Thank you

    C 1 Reply Last reply
    0
    • C CNewbie

      All, I need to perform a Computer query in AD, but I am unsure how to authenicate myself. A little background: 1). I am currently logged into a machine on the domain with my domain userID. 2). I have Admin rights to the Domain as it works perfectly with VBScript (without authentication), but not with C#. I read that SetPrincipalPolicy() would allow you to authenticate yourself without providing a Username and password, but I have yet to find a way to use it successfully. Does anyone have any ideas? Thank you

      C Offline
      C Offline
      CNewbie
      wrote on last edited by
      #2

      Anyone?

      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