470,841 Members | 1,089 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

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

LDAP authentication code

Is the following codes correct to login to LDAP in ASP page?

on error resume next
Set openDS = GetObject("LDAP:")
openDS.OpenDSObject "LDAP://CN=jeffsmith,DC=fabrikam,DC=com", Null, Null,
ADS_SECURE_AUTHENTICATION + ADS_SERVER_BIND
'or this code: openDS.OpenDSObject
"LDAP://Server:389/ou=Members,o=Microsoft",
"cn=Administrator,ou=Members,o=Microsoft", "password", 0
'or this code: openDS.OpenDSObject
"LDAP://Server:389/ou=Members,o=Microsoft",
"cn=Administrator,ou=Members,o=Microsoft", "password", ADS_USE_SSL
'or this code: openDS.OpenDSObject
"LDAP://TargetLDAPMachine:389/o=microsoft/ou=members",
"cn=Administrator,ou=Members,o=Microsoft", "password", 0
if err.number = 0 then
response.write "authentication success"
else
response.write err.number & ":" & err.description
set openDS = nothing
end if

Thank you.
Jul 19 '05 #1
0 2763

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

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