Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / July 2007

Tip: Looking for answers? Try searching our database.

LDAP user authentication problems

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
pardesiya - 19 Jul 2007 05:15 GMT
Hi,

I am trying to authenticate website user user with the below code. If
there is no error then I assume user is authenticated.

objRootDSE = GetObject("LDAP://rootDSE")
strADSPath = objRootDSE.Get("rootDomainNamingContext")
objDSObj = GetObject("LDAP:")
objAuth = objDSObj.OpenDSObject("LDAP://" & strADSPath, strDomainUser,
strPswd, 1)

The above code works fine in my PC where I use .NET 2.0 with MS Visual
Web Developer integrated with IIS. But it gives error when I move this
code to Win 2000 server with IIS. It errors in the 1st line itself and
the message is "Cannot create ActiveX component".
Interestingly, the same code works for a simple ASP application in the
same server but not with ASP.NET

Much appreciate any advice what could be missing.

Thanks a lot,
PD
Alexey Smirnov - 19 Jul 2007 18:00 GMT
> Hi,
>
[quoted text clipped - 13 lines]
> Interestingly, the same code works for a simple ASP application in the
> same server but not with ASP.NET

Reference System.DirectoryServices.dll and use the ".NET" way

Imports System.DirectoryServices

Dim myDirectoryEntry As DirectoryEntry
myDirectoryEntry = New DirectoryEntry("LDAP://...")

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.