473,395 Members | 1,948 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

LDAP Authentication code in ASP file HELP!

Hi,

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 8326
sashi
1,754 Expert 1GB
Hi Jo,

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

http://www.thescripts.com/forum/thread53296.html
Sep 6 '06 #2
Hi Jo,

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

http://www.thescripts.com/forum/thread53296.html

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 "ADsDSOOBJECT"?
Billion thanks.

From: Jo
Sep 7 '06 #3
omasp
1
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 "ADsDSOOBJECT"?
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,

Omas
Jan 7 '08 #4
Expand|Select|Wrap|Line Numbers
  1. adlogin= YourADuserLogin
  2.  adpassword =  YourAdpassword 
  3.  
  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

5
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...
3
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...
7
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...
1
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...
1
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...
6
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...
4
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...
2
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.
3
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...
1
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...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
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...
0
Oralloy
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,...
0
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...
0
tracyyun
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...

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.