473,320 Members | 1,744 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Accessing Active Directory

Dear Developers,

I am building a little WebPart for the new sharepoint 2003 services. The
webspart simply has to show a list of users and their phonenumbers, which
come from our main domain. This all works....for me, when others users
viewed the webpart is gave me a (them rather than me actually) "The
specified directory service attribute or value does not exist".

After some investigation I determined this had to do with not getting any
child DirectoryEntry Items. As the code worked for me the code is not the
problem, the problem had to be in something else. So I found that when I
explicitly got the DirectoryEntry with my user account it worked. As I am in
an Intranet environment I do not want a hardcoded or configured account
somewhere, it should just work with intergrated security. Then I asked one
of my collegues to give me their credentials, that worked as well. And that
was a bit strange, because it didn't work for him with integrated security.
I checked the thread/windows identities and that's all set to his
credentials.

So can anyone tell me why it does work with me, using integrated security
and doesn't for others. By the way i developed and tested on my own desktop
so the difference is probably that i am logged in. But this should work on
an intranet server with integrated authentication. Anyone experience with
this??

Regards in advance,

Remco
Nov 18 '05 #1
2 1700
I believe you have to set the level attribute of the Trust element in
web.config to "Full" before you can access AD from ASP.

http://msdn.microsoft.com/library/de...ustsection.asp
"Remco Bosman" <bo*****@quicknet.nl.invalid> wrote in message
news:OS*************@TK2MSFTNGP11.phx.gbl...
Dear Developers,

I am building a little WebPart for the new sharepoint 2003 services. The
webspart simply has to show a list of users and their phonenumbers, which
come from our main domain. This all works....for me, when others users
viewed the webpart is gave me a (them rather than me actually) "The
specified directory service attribute or value does not exist".

After some investigation I determined this had to do with not getting any
child DirectoryEntry Items. As the code worked for me the code is not the
problem, the problem had to be in something else. So I found that when I
explicitly got the DirectoryEntry with my user account it worked. As I am in an Intranet environment I do not want a hardcoded or configured account
somewhere, it should just work with intergrated security. Then I asked one
of my collegues to give me their credentials, that worked as well. And that was a bit strange, because it didn't work for him with integrated security. I checked the thread/windows identities and that's all set to his
credentials.

So can anyone tell me why it does work with me, using integrated security
and doesn't for others. By the way i developed and tested on my own desktop so the difference is probably that i am logged in. But this should work on
an intranet server with integrated authentication. Anyone experience with
this??

Regards in advance,

Remco

Nov 18 '05 #2
Hi there,

I have has a similar problem with ASP.NET accessing
Active Directory. If your users have IE6.0 then make
sure that the 'Enable Integrated Windows Authentication'
check box is set within Tools/Options within IE.

Hope this helps

Cammie.
-----Original Message-----
Dear Developers,

I am building a little WebPart for the new sharepoint 2003 services. Thewebspart simply has to show a list of users and their phonenumbers, whichcome from our main domain. This all works....for me, when others usersviewed the webpart is gave me a (them rather than me actually) "Thespecified directory service attribute or value does not exist".
After some investigation I determined this had to do with not getting anychild DirectoryEntry Items. As the code worked for me the code is not theproblem, the problem had to be in something else. So I found that when Iexplicitly got the DirectoryEntry with my user account it worked. As I am inan Intranet environment I do not want a hardcoded or configured accountsomewhere, it should just work with intergrated security. Then I asked oneof my collegues to give me their credentials, that worked as well. And thatwas a bit strange, because it didn't work for him with integrated security.I checked the thread/windows identities and that's all set to hiscredentials.

So can anyone tell me why it does work with me, using integrated securityand doesn't for others. By the way i developed and tested on my own desktopso the difference is probably that i am logged in. But this should work onan intranet server with integrated authentication. Anyone experience withthis??

Regards in advance,

Remco
.

Nov 18 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Brandon Arnold | last post by:
Hello All, I have a linked ADSI Server to our company Active Directory and everything is fine. I'm running queries and such using LDAP. BUT how can I aquire a list of attributes for the classes...
9
by: Mario Rodriguez | last post by:
Hi people. I have a problem adding users to Win2003 active directory programatically. When I execute my app throws the following exception: .................The specified directory service...
1
by: Toufani | last post by:
Hi everybody, I want to retrieve information about objects in active directory windows 2000 and their properties. I got some codes that don't work absolutely. for example I can't retrieve users...
1
by: unerwartet | last post by:
Hi, I want to access the high-watermark-vector of a specific domain controller in the active directory from c#. But I do not know how to achieve this. I tried it with: ...
1
by: Andrew | last post by:
Hey all, Working on revamping our Intranet here and making use of the LDPA, Active Directory, Directory Services, etc. that .Net provides. I am still fairly new on this subject, so the problem...
8
by: thomson | last post by:
Hi, Is it possible to access the user information from a Web Application, Iam not able to use System.DirectoryServices from my code behind.---using System.DirectoryServices What am i missing? ...
2
by: Conversão .cs em .dll | last post by:
I'm having a problem accessing Active Directory, the problem is that I need to access the passwords of the user to validate a login that i'm doing. I have access for the usernames but not to there...
2
by: =?Utf-8?B?SklNLkgu?= | last post by:
Accessing AD in ASP.Net 1. It sees I can I access Active Directory catalog from asp.net, is the version of AD important for this? 2. Do I need to have a domain user for that or IIS will be...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.