Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Active Directory Error '80040e37'

510 views
Skip to first unread message

Johnny

unread,
Nov 22, 1999, 3:00:00 AM11/22/99
to
I wrote a LDAP search of ASP with ADSI on my exchange server. It can
run normally. However, I moved this ASP program to my PDC. I used web
browser connecting to the ASP. I got the following error message:

Active Directory Error '80040e37'

An invalid Active Directory pathname was passed

/adsi/nologon/Default.asp, line 18

The following is part of my ASP program. Is there anything wrong?

Set ADOConn = CreateObject("ADODB.Connection")
Set ADOCommand = CreateObject("ADODB.Command")
ADOConn.Provider = "ADSDSOObject"
ADOConn.Open "Active Directory Provider"

Set ADOCommand.ActiveConnection = ADOConn

SQLStr = "select cn,uid,telephonenumber,mail from 'LDAP://C17F4' WHERE
objectClass='*' and cn='何忠霖'"
ADOCommand.CommandText = SQLStr

Set RS = ADOCommand.Execute (======> line 18)

Response.Write RS.Fields.Count

While Not RS.EOF
Response.Write RS("uid")
Response.Write " "
Response.Write RS("cn")
Response.Write " "
Response.Write RS("mail")
Response.Write "<br>"
RS.MoveNext
Wend

RS.Close

Set ADOConn = Nothing
Set ADOCommand = Nothing


Sent via Deja.com http://www.deja.com/
Before you buy.

Johnny

unread,
Nov 22, 1999, 3:00:00 AM11/22/99
to
I wrote a LDAP search of ASP with ADSI on my exchange server. It can
run normally. However, I moved this ASP program to my PDC. I used web
browser connecting to the ASP. I got the following error message:

Active Directory Error '80040e37'

An invalid Active Directory pathname was passed

/adsi/nologon/Default.asp, line 18

The following is part of my ASP program. Is there anything wrong?

Set ADOConn = CreateObject("ADODB.Connection")
Set ADOCommand = CreateObject("ADODB.Command")
ADOConn.Provider = "ADSDSOObject"
ADOConn.Open "Active Directory Provider"

Set ADOCommand.ActiveConnection = ADOConn

SQLStr = "select cn,uid,telephonenumber,mail from 'LDAP://C17F4' WHERE

objectClass='*' and cn='Kevin*'"

0 new messages