473,387 Members | 3,781 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,387 software developers and data experts.

LDAP with ASP unable to validate user details

Hi All,


<%@ LANGUAGE="VBSCRIPT" %>

<form method="POST">

<%
Dim rstUsers
Dim objDSE, strNamingContext
Set objDSE = GetObject("LDAP://rootDSE")
strNamingContext = objDSE.Get("defaultNamingContext")
Set objDSE = Nothing

set rstUsers= CreateObject("ADODB.Recordset")
rstUsers.Open "SELECT sAMAccountName FROM 'LDAP://CN=Users," & strNamingContext & "' WHERE objectClass='user' and sAMAccountName='Chethan' and userpassword='bc123' ORDER BY sAMAccountName", "Provider=ADsDSOObject"

if not rsUsers.eof then
While Not rstUsers.EOF
response.write "<b>" & rstUsers("sAMAccountName").Value & "</b>"

rstUsers.MoveNext
Wend
else
Response.Write "Account Details not found"
end if
rstUsers.Close
Set rstUsers = Nothing
%>


</form>

The above code is showing

Error Type:
(0x8007054B)
/sulzer/ldap2.asp, line 9

I am unable to resolve this error .

Please any one can help me>>>
Feb 29 '08 #1
3 2006
DrBunchman
979 Expert 512MB
Which is line 9?

Dr B
Feb 29 '08 #2
Which is line 9?

Dr B


Set objDSE = GetObject("LDAP://rootDSE")

Regards,
Chethan Kumar
Feb 29 '08 #3
DrBunchman
979 Expert 512MB
Then I'd suggest it may be a domain issue, because I can run your code on my machine without any errors, but I'm afraid I can't offer you any more advice than that.

You may be better off seeking help in the IIS forum unless any of the guys here can help you?

Good luck
Dr B
Feb 29 '08 #4

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

Similar topics

2
by: Victor Lokhmatov | last post by:
Hello Everyone, My company has asked me to put a company directory on our intranet site and I'm trying to use php to extract the users from our active directory server. I've got everything...
0
by: FabFreddy | last post by:
Hi, I can't find out what the problem is with the error message below! I get it when I go from one to another page with controls in these pages. Anyone knows??? THX Unable to validate...
1
by: A Lake | last post by:
I'm trying to get user details using ASP under IIS (Win2000) with the following code: Set User = GetObject("WinNT://domainname/" & mid(strNTUser,8) & ",user") strNTUserFullName= User.Fullname ...
5
by: Ganesh Ramamurthy | last post by:
Hi Experts, I am using windows Authenication in my ASP.Net application. I have different LDAP's configured in my network and my applicaiton uses one of these LDAP users. How can I specify IIS to...
5
by: Bryan | last post by:
Hello, I have a asp.net app working with directory services on my Windows XP development machine. However when I moved the application over to our production server (Win 2000 Server) it no longer...
5
by: sjl | last post by:
I've got an .aspx webform for searching my database. It basically takes user input and passes it as a parm into a stored proc to search a table. The results are returned in a SQLDataReader and...
4
by: Mike Fellows | last post by:
running IIS on a single server, hosting pages on an intranet basis, one single user out of 50 is having an unable to validate data issue how do i fix this (the microsoft KB is a little...
6
by: Solje | last post by:
Im developing an ASP.NET application used for maintinance purpose and it may be idle for some ours. The application crash with the error shown below when the user click on some contol in the...
1
by: sbettadpur | last post by:
hello i have problem with connecting to LDAP.... it means i have user created on server(192.168.0.35), if i try using user called srinath this type error i am receiving..........show below...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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
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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.