Accessing Active Directory

Discussion in 'ASP .Net Web Services' started by Markus Alexander, Feb 21, 2004.

  1. Hello there

    I've got a little problem when trying finding the person behind a global
    address book entry.
    Some background infos: I have an Webservice which looks up some Contacts in
    the public folder of an Exchange Server 2000. I read the eMailaddress, but
    its normally an "EX" entry which means that it points to the global address
    book entry of the Contact. Then I use directoryservices and make a query on
    this field to get the SMTP addres of the person. This works very good when I
    use my test application - I get the eMail-Address. But when I run the same
    code in a WebService every field of the Person I get is Null except of the
    adsPath.

    Does anybody know what I'm doing wrong? Is there another way to get the SMTP
    address of a contact?

    Thans
    Markus Alexander
     
    Markus Alexander, Feb 21, 2004
    #1
    1. Advertising

  2. Markus Alexander

    Jan Tielens Guest

    You should check if the account that your web service is using to access the
    AD has enough rights (probably this is the ASPNET account).

    --
    Greetz

    Jan Tielens
    ________________________________
    Read my weblog: http://weblogs.asp.net/jan


    "Markus Alexander" <> wrote in message
    news:40370cec$...
    > Hello there
    >
    > I've got a little problem when trying finding the person behind a global
    > address book entry.
    > Some background infos: I have an Webservice which looks up some Contacts

    in
    > the public folder of an Exchange Server 2000. I read the eMailaddress, but
    > its normally an "EX" entry which means that it points to the global

    address
    > book entry of the Contact. Then I use directoryservices and make a query

    on
    > this field to get the SMTP addres of the person. This works very good when

    I
    > use my test application - I get the eMail-Address. But when I run the same
    > code in a WebService every field of the Person I get is Null except of the
    > adsPath.
    >
    > Does anybody know what I'm doing wrong? Is there another way to get the

    SMTP
    > address of a contact?
    >
    > Thans
    > Markus Alexander
    >
    >
     
    Jan Tielens, Feb 23, 2004
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Remco Bosman

    Accessing Active Directory

    Remco Bosman, Nov 21, 2003, in forum: ASP .Net
    Replies:
    2
    Views:
    2,620
    Cammie
    Dec 5, 2003
  2. Jeremy Chapman
    Replies:
    0
    Views:
    391
    Jeremy Chapman
    Dec 1, 2003
  3. Bill Smith

    Accessing Active Directory

    Bill Smith, Feb 18, 2004, in forum: ASP .Net
    Replies:
    0
    Views:
    349
    Bill Smith
    Feb 18, 2004
  4. Diego F.

    Accessing Active Directory

    Diego F., Jun 6, 2005, in forum: ASP .Net
    Replies:
    2
    Views:
    400
    Diego F.
    Jun 7, 2005
  5. Neil S.
    Replies:
    2
    Views:
    591
    Lawrie
    May 7, 2004
Loading...

Share This Page