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 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
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
. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
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...
|
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...
|
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...
|
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:
...
|
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...
|
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?
...
|
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...
|
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...
|
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...
|
by: ryjfgjl |
last post by:
ExcelToDatabase: batch import excel into database automatically...
|
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...
|
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...
|
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...
|
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...
|
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)...
|
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...
|
by: Defcon1945 |
last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
| |