468,514 Members | 1,664 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,514 developers. It's quick & easy.

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 8150
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
reply views Thread by NPC403 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.