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. AD authentication

AD authentication

Scheduled Pinned Locked Moved ASP.NET
csharpasp-netcomsysadminsecurity
3 Posts 3 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.
  • L Offline
    L Offline
    largeinnit
    wrote on last edited by
    #1

    Hi, I'm following the example below in asp.net 1.1 as a simple means for testing a pair of AD credentials: http://www.codeproject.com/useritems/NET\_LDAP\_Authentication.asp This works fine, but it returns false when used with valid passwords that contain non standard characters such as &. Does anyone have any info on the types of character conversion that AD needs for authentication? Also, is there a simple way that I can make the application secure so that plain text passwords aren't sent over the network? Thanks

    C D 2 Replies Last reply
    0
    • L largeinnit

      Hi, I'm following the example below in asp.net 1.1 as a simple means for testing a pair of AD credentials: http://www.codeproject.com/useritems/NET\_LDAP\_Authentication.asp This works fine, but it returns false when used with valid passwords that contain non standard characters such as &. Does anyone have any info on the types of character conversion that AD needs for authentication? Also, is there a simple way that I can make the application secure so that plain text passwords aren't sent over the network? Thanks

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

      For security, use LDAPS (LDAP over SSL) to encrypt the LDAP communication. This requires that the domain controllers are set up with the appropriate certificates to support LDAPS, however.

      1 Reply Last reply
      0
      • L largeinnit

        Hi, I'm following the example below in asp.net 1.1 as a simple means for testing a pair of AD credentials: http://www.codeproject.com/useritems/NET\_LDAP\_Authentication.asp This works fine, but it returns false when used with valid passwords that contain non standard characters such as &. Does anyone have any info on the types of character conversion that AD needs for authentication? Also, is there a simple way that I can make the application secure so that plain text passwords aren't sent over the network? Thanks

        D Offline
        D Offline
        dekart_roo
        wrote on last edited by
        #3

        Should have 75-80% of everything you could want to know for AD coding in .Net: http://www.c-sharpcorner.com/UploadFile/ecabral/ADand.NET08242005065451AM/ADand.NET.aspx In direct answer to your second question: DirectoryEntry de = new DirectoryEntry(); de.AuthenticationType = AuthenticationTypes.Secure; -Roo

        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