473,581 Members | 2,844 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

LDAP Authentication code in ASP file HELP!

8 New Member

Can anyone help me on create LDAP authentication code in asp file? If successful then will redirect user to appropriate page.

From: Jo
Sep 5 '06 #1
4 8338
1,754 Recognized Expert Top Contributor
Hi Jo,

Kindly refer to below attached link, hope it helps you to get started with, take care my fren.. :)

Sep 6 '06 #2
8 New Member
Hi Jo,

Kindly refer to below attached link, hope it helps you to get started with, take care my fren.. :)


Hi Sashi,

Thanks for your assistance.
How do I know that my server has ADSI service provider being setup as the code is only workable with "ADsDSOOBJE CT"?
Billion thanks.

From: Jo
Sep 7 '06 #3
1 New Member
Hi Sashi,

Thanks for your assistance.
How do I know that my server has ADSI service provider being setup as the code is only workable with "ADsDSOOBJE CT"?
Billion thanks.

From: Jo
Hello Jo,

How you going with your ASP login page.
I am also after exact same thing as you were looking for.

Do you have any luck with that If so Could please help
with that Cause I am struggling with this for last 4-5 Weeks.
Not able to sort out, I don't have much knowledge on ASP, trying
hard with this but still no success..

I would really appreciate your help...

Thank you,

Jan 7 '08 #4
1 New Member
Expand|Select|Wrap|Line Numbers
  1. adlogin= YourADuserLogin
  2.  adpassword =  YourAdpassword 
  4.     domainName="yourdomain"
  5. Set adObject = GetObject("WinNT:")
  6. On Error Resume Next
  7. Set userObject = adObject.OpenDSObject("WinNT://" & domainName, adlogin  , adpassword , ADS_SECURE_AUTHENTICATION)
  8. If err = 0 Then
  9.     Response.Write ("Congratulation AD user " &username&  "You have successfully log in to Ldap" )
  10. else
  11. Response.Write("Sry your are fail to log in ,Please try again")
No need any dll to install . Just run above the script and change it accordingly as your ldap. This one is definitely work.
Oct 28 '11 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

by: dmcconkey | last post by:
Hi folks, I've been searching for a while and haven't found my specific question anywhere else. If this has already been asked, please accept my appologies and point me to the appropriate thread. I'm bidding on a PHP intranet development contract. One of the specific requirements is that the app interface with the company's existing Open...
by: jeremy | last post by:
Hello. I have an asp.net application that resides on a non-DC / BDC Sharepoint Server (although it is logged into the domain). The application will perform lookups based on the current user (integrated auth) to an LDAP server which requires no login (AuthenticationTypes.None). When I run it, I get the following ambiguous error: Security...
by: Amar | last post by:
I am trying to connect to my college LDAP directory using ASP.NET. This LDap does not have security as it returns only user demographic information. i do not need to bind with a username or credentials. What i am trying to do is, i am trying to look up all the information for the user with user id 'testuser'. The following is the Vb.net code...
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...
by: Serge | last post by:
Good Day Folks, I'm still trying to write a class to do LDAP searches on a Novell eDirectory. I've yet to see anything that even compiles, this includes samples from MSDN. Amazing. I appreciate the help I'm getting from individuals, but it would be nice if someone from Microsoft helped also. It is after all their product. Anyways,...
by: Notgiven | last post by:
I am considering a large project and they currently use LDAP on MS platform. It would be moved to a LAMP platform. OpenLDAP is an option though I have not used it before. I do feel fairly confortable with my ability to use SESSIONS for authentication and access control. Would it better to learn and use LDAP or can you REALLY have just as...
by: Terry Miller | last post by:
I have DB2 V8.2 loaded on a Redhat Enterprise Linux version 3 (RHEL 3) box. RHEL is configured to talk to LDAP for authenticaton besides the local passwd file. I can verify this by executing an su to a User Id that exists in LDAP and not in the local /etc/passwd file. Also verified that the connection to LDAP is working by ssh into the box....
by: duncan beaumont | last post by:
Hi, - SQLserver 2000 - Yellowfin 2.4 - Windows 2003 server I have been asked to investigate seting up LDAP authentication to access our Yellowfin reporting.
by: RJN | last post by:
Hi I've written a code that queries Windows LDAP server and works fine, but the same doesn't work when querying Solaris LDAP server. DirectoryEntry de = new DirectoryEntry("LDAP://server.com"); DirectorySearcher ds = new DirectorySearcher(de); de.Username = "xxx"; de.Password = "yyy"; de.AuthenticationType = AuthenticationTypes.Secure;
by: jesbuddy07 | last post by:
Hello, I'm using IIS 5 and PHP 4.3.5. I have an html page, page1, that resides at member.company.com server. It contains a form asking a user to login. I then check the login by connecting to LDAP.company.com and bind the provided username and password to the LDAP server. if the user is authenticated by LDAP then i direct users to a second...
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...
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
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...
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...
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
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...

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.