Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP General > Query LDAP with ASP

Reply
Thread Tools

Query LDAP with ASP

 
 
A Lake
Guest
Posts: n/a
 
      03-22-2005
I'm trying to get user details using ASP under IIS (Win2000) with the
following code:

Set User = GetObject("WinNT://domainname/" & mid(strNTUser, & ",user")
strNTUserFullName= User.Fullname

The website this is running under uses Windows Authentication only (no
anonymous logins) and this presumably is why I get the error 'General access
denied error' from AD as the logged in user's credentials are not passed to
the AD domain controller that is being queried for the users details.

My question is, how to I get this to work whilst keeping Windows
Authentication? I only need the most basic details about the user so writing
LDAP queries and creating recordsets etc seems like overkill and presumably
the same problem will occur?

 
Reply With Quote
 
 
 
 
Ganesh
Guest
Posts: n/a
 
      03-23-2005
Hi,

As far as I have worked with LDAP stuff, it requires the username and
password to be passed to successfully connect to the server where your AD is.
This username and password should be the authetication details of a user who
has all rights to manipulate or access / query the AD, mostly an
administrator group level user. So I think you need to supply the
authentication details to work on LDAP.

Ganesh

"A Lake" wrote:

> I'm trying to get user details using ASP under IIS (Win2000) with the
> following code:
>
> Set User = GetObject("WinNT://domainname/" & mid(strNTUser, & ",user")
> strNTUserFullName= User.Fullname
>
> The website this is running under uses Windows Authentication only (no
> anonymous logins) and this presumably is why I get the error 'General access
> denied error' from AD as the logged in user's credentials are not passed to
> the AD domain controller that is being queried for the users details.
>
> My question is, how to I get this to work whilst keeping Windows
> Authentication? I only need the most basic details about the user so writing
> LDAP queries and creating recordsets etc seems like overkill and presumably
> the same problem will occur?
>

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
python-ldap/win32 or python/ldap/win32 rcmn Python 1 11-06-2006 11:47 PM
Need to wrtie LDAP class to *answer* LDAP queries. junk1@davidbevan.co.uk Java 1 02-21-2006 09:59 PM
ruby-ldap: uninitialized constant LDAP::LDAP_CONTROL_PAGEDRESULTS James Hughes Ruby 4 12-13-2005 11:46 PM
[ANN] Ruby/LDAP 0.9.1: LDAP API (RFC1823) library. Ian Macdonald Ruby 0 03-15-2005 11:23 PM
using LDAP Controls in ruby-ldap Jason Wold Ruby 5 11-07-2004 03:35 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57