473,626 Members | 3,427 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1724
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*****@quickn et.nl.invalid> wrote in message
news:OS******** *****@TK2MSFTNG P11.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
7127
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 and categories. Such as if i wanted to see a user's telephone number and email address for use in a corporate database? Is this possible? Thanks
9
3717
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 attribute or value does not exist........... Exactly the same code works fine on my win2000 active directory. My app include the use of the extensionAtributes and I'm not sure if the extensionAttributes feature was removed from win2003 Active...
1
3938
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 list and group list separatedly.there is my code that downloaded from the internet : public class LdapAuthentication { private string _path;
1
2158
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: LDAP://CN=TheDomainController,OU=Domain Controllers,DC=my,DC=domain,DC=net
1
4744
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 I have run into I am not sure how to fix, and really not sure what is causing it. Here's what is going on (test server - Windows 2003 Server): I have a page in a folder (under anonymous authentication in IIS6) that has a link on it that...
8
1366
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? Thanks in Advance thomson
2
334
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 passwords. Can anyone help me Thanks João Felgueiras
2
1936
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 accessing it? 3. If I need to create a domain user, doe sit have to be domain admin? 4. How can I restrict this user’s access only for read for only AD access?
0
8272
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8205
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8644
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8370
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
7206
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5579
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
2632
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1817
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1516
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.