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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. ADsUser - Addresses

ADsUser - Addresses

Scheduled Pinned Locked Moved C / C++ / MFC
sysadminhelpquestion
3 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.
  • D Offline
    D Offline
    derhackler
    wrote on last edited by
    #1

    bonjour! i've got the following problem: i'm connected to an ADsUser Interface and try to read the adresses. but the HRESULT of the property is always E_ADS_PROPERTY_NOT_FOUND. on the win2k server the adress properties are set, but except the PostalCodes i can't read them. what's wrong? thnx

    E 1 Reply Last reply
    0
    • D derhackler

      bonjour! i've got the following problem: i'm connected to an ADsUser Interface and try to read the adresses. but the HRESULT of the property is always E_ADS_PROPERTY_NOT_FOUND. on the win2k server the adress properties are set, but except the PostalCodes i can't read them. what's wrong? thnx

      E Offline
      E Offline
      Erik Thompson
      wrote on last edited by
      #2

      derHackler, This is correct. Properties vary in availabilty based on the provider you are using. For example: The WinNT:// provider gets you the user in active directory and allows you to set properties on the user such as first name, last name and etc. But if you try to set the email address you will get E_ADS_PROPERTY_NOT_FOUND. This is because the email address is not available through the winnt provider. You will need to get the user from the LDAP:// provider to be able to set the email. Also, Make sure you are also using the correct attribute name as the provider is expecting. http://msdn.microsoft.com/library/psdk/adsi/ds2pldap\_3703.htm Both providers use the ADsUser interface but provide different attribute features. Examine the AD Schema to determine which attributes are available from WinNT provider and LDAP provider for a User object. http://msdn.microsoft.com/library/psdk/adsi/ds2pnt4\_59wz.htm http://msdn.microsoft.com/library/psdk/adsi/ds2pnt4\_49mb.htm Regards, -Erik Thompson

      D 1 Reply Last reply
      0
      • E Erik Thompson

        derHackler, This is correct. Properties vary in availabilty based on the provider you are using. For example: The WinNT:// provider gets you the user in active directory and allows you to set properties on the user such as first name, last name and etc. But if you try to set the email address you will get E_ADS_PROPERTY_NOT_FOUND. This is because the email address is not available through the winnt provider. You will need to get the user from the LDAP:// provider to be able to set the email. Also, Make sure you are also using the correct attribute name as the provider is expecting. http://msdn.microsoft.com/library/psdk/adsi/ds2pldap\_3703.htm Both providers use the ADsUser interface but provide different attribute features. Examine the AD Schema to determine which attributes are available from WinNT provider and LDAP provider for a User object. http://msdn.microsoft.com/library/psdk/adsi/ds2pnt4\_59wz.htm http://msdn.microsoft.com/library/psdk/adsi/ds2pnt4\_49mb.htm Regards, -Erik Thompson

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

        thanks for your answer. but the PostalAddresses property is supported on both providers (i use LDAP). you also get the E_ADS_PROPERTY_NOT_FOUND error when you try to get a value from a property which has no value yet. but i set the addresses value and so i don't know what's wrong.

        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