473,405 Members | 2,262 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,405 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 1703
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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.