471,047 Members | 1,222 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,047 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 8217
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

Post your reply

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

Similar topics

5 posts views Thread by dmcconkey | last post: by
7 posts views Thread by Amar | last post: by
1 post views Thread by Andrew | last post: by
1 post views Thread by Serge | last post: by
4 posts views Thread by Terry Miller | last post: by
2 posts views Thread by duncan beaumont | last post: by
3 posts views Thread by RJN | last post: by
1 post views Thread by jesbuddy07 | last post: by

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.