473,383 Members | 1,980 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,383 software developers and data experts.

IIS Issue

Does Microsoft ADSI provider support LDAP with SSL for querying Sun
Directory Server using ASP Code running on IIS 6.0?
I was successfull in querying LDAP for Sun One Directory Server with
Non-SSL. When Sun One Directory Server is Enabled with SSL I could perform
LDAP bind to the Sun One Directory through Softerra LDAP Browser but unable
to query the same using ASP code.

Softerra LDAP browser also couldn't able to perform query initially when
certificate database was not configured to it.

I configured Cert7.db and Key3.db to Softerra LDAP Browser as given
instruction from help documentation.

I tried importing SSL certificate and CA root certificate to Keystore /
Certificate store and running application query was not sucessfull.

Let me know How to configure Certificate Database file like Cert7.db and
Key3.db to our ASP application running on IIS 6.0?

I initially tried the same with MS Active Directory.

This is the Query I tried for Sun One Directory:

------------------------------------------------------------

Const ADS_SCOPE_SUBTREE = 2
'strQuery = "SELECT ADsPath FROM
'LDAP://192.168.28.26:30242/DC=myrcplus,DC=COM' WHERE objectClass='*' "
strQuery = "SELECT ADsPath FROM
'LDAPS://192.168.28.26:6123/DC=myrcplus,DC=COM' WHERE objectClass='*' " (
This statement not works when i query using LDAPS Port)
ADS_SECURE_AUTHENTICATION=1
'ADS_USE_SSL=2
set oConn = server.CreateObject("ADODB.Connection")
oConn.Provider = "ADsDSOObject"
oConn.Properties("User ID") = "uid=DJayaprakash,dc=myrcplus,dc=com"
oConn.Properties("Password") = "slk006@"
oConn.Properties("Encrypt Password") = True
oConn.Open "ADSI"
oConn.Properties("ADSI Flag") =1
set cmd = server.CreateObject("ADODB.Command")
cmd.ActiveConnection = oConn
cmd.CommandText = strQuery
cmd.Properties("Searchscope") = ADS_SCOPE_SUBTREE
on error resume next
set oRS = cmd.Execute
oRS.MoveFirst
count=oRs.RecordCount
response.Write "count=" &count
And this is code for MS Active Directory
-------------------------------------------------
dim strUser
' assume failure
AuthenticateUser = false

strQuery = "SELECT cn FROM 'LDAPS://192.168.28.26:636/dc=myrcplus,dc=com'
WHERE objectClass='*' "

set oConn = server.CreateObject("ADODB.Connection")
oConn.Provider = "ADsDSOOBJECT"
oConn.Properties("User ID") = strUser
oConn.Properties("Password") = strPassword
oConn.Properties("ADSI FLAG") = 1
oConn.Properties("Encrypt Password") = true
oConn.open "DS Query"
set cmd = server.CreateObject("ADODB.Command")
set cmd.ActiveConnection = oConn
cmd.CommandText = strQuery
on error resume next
set oRS = cmd.Execute
if oRS.bof or oRS.eof then
AuthenticateUser = false
Response.Write("Failed")
else
AuthenticateUser = true
Response.Write("Success")
Response.Write(oRS.Fields(0))
end if
set oRS = nothing
set oConn = nothing

Both the code works fine with Non-SSL port.

Waiting for your reply ASAP for Query changes or some configuration on IIS
to load Client Certificate Key from Application to Server.

Regards

Suresh
Feb 26 '07 #1
0 1123

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: George Hester | last post by:
Please take a look at this google artcle: http://groups.google.com/groups?hl=en&lr=&frame=right&th=55d6f4b50f5f9382&seekm=411f370d%241%40olaf.komtel.net#link9 The op was having trouble with...
2
by: Anthony Cuttitta Jr. | last post by:
We have an application that outputs several different graphs from data downloaded from our AS400. The application has worked without (this) issue for several months now, but just recently, the...
2
by: Ben Rush | last post by:
Hello World, Okay, I have spent the day browsing the newsgroups and reading up on article after article concerning ViewState corruption and so forth, and I have a couple questions. We...
5
by: Robert | last post by:
I have a series of web applications (configured as separate applications) on a server. There is a main application at the root and then several virtual directories that are independant...
13
by: SAL | last post by:
Hello, I'm trying to include a popup in the ItemTemplate of a gridview row. The ItemTemplate for the field contains a textbox and when the user clicks in the textbox I want a popup panel to show...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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
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...

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.