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. displaying proxyAddresses attribute on a AD account

displaying proxyAddresses attribute on a AD account

Scheduled Pinned Locked Moved C#
data-structuresquestion
2 Posts 2 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
    lane0p2
    wrote on last edited by
    #1

    DirectoryEntry employee = result.GetDirectoryEntry(); string ea = employee.Properties["proxyAddresses"].Value.ToString(); MessageBox.Show(ea.ToString()); Hi All, i'm using the above code to try and extract the email address of a user account. if i swap proxyAddresses for 'description' or 'employeeID' etc it works fine. but when i use proxyAddresses it errors! i have tried creating ea as a string array and it still fails!! any ideas? many thanks, Phil

    P 1 Reply Last reply
    0
    • L lane0p2

      DirectoryEntry employee = result.GetDirectoryEntry(); string ea = employee.Properties["proxyAddresses"].Value.ToString(); MessageBox.Show(ea.ToString()); Hi All, i'm using the above code to try and extract the email address of a user account. if i swap proxyAddresses for 'description' or 'employeeID' etc it works fine. but when i use proxyAddresses it errors! i have tried creating ea as a string array and it still fails!! any ideas? many thanks, Phil

      P Offline
      P Offline
      Parwej Ahamad
      wrote on last edited by
      #2

      Hi Phil, Please go through give below site. If still you are facing problem then please let me know. http://geekswithblogs.net/mhamilton/archive/2005/12/18/63468.aspx[^]

      Parwej Ahamad g.parwez@gmail.com

      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