error '80005000' , ldap, GetObject, Windows 2003

D

douglas sur

I have a piece of asp code that runs fine on my windows 2000 server for over
a year. We recently brought up a Windows 2003 server and the code seemed to
work there for a while. Now the code has stopped working. I get a 80005000
error on the GetObject method. The code has not changed at all during this
time period. I have no idea what changes have been made to the Windows 2003
server that could affect this.

Here is the code snippet sans the comments and some error checking:

vSQL = "SELECT AdsPath, cn FROM
'LDAP://blah.blah.com:389/dc=xx,dc=xxx,dc=gov' WHERE objectClass='user' and
userprincipalname='" & Request("txtUserName") & "'"
Set rsLDAP = oConn.Execute(vSQL)
if Not rsLDAP.EOF then
Set usr = GetObject(rsLDAP.Fields("AdsPath").Value) <==THIS IS THE LINE
THAT BLOWS UP
Const ADS_UF_DONT_EXPIRE_PASSWD = &h10000

etc.


I greatly appreciate any information you can shed on this topic.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,774
Messages
2,569,598
Members
45,152
Latest member
LorettaGur
Top