Hello,
yeah, thanks that was it!
But that means that the problem is somewhere else in my asp.
I get the error 'Table does not exist' in the last line when I try to
execute
Set cnnConnection = Server.CreateObject("ADODB.Connection")
cnnConnection.Provider="ADsDSOObject"
cnnConnection.Open "Active Directory Provider"
Set objCommand = Server.CreateObject("ADODB.Command")
objCommand.ActiveConnection = cnnConnection
objCommand.CommandText = szlcmd
Set objlRecordSet = objCommand.Execute
Thank you,
Markus
"Anthony Jones" <An*@yadayadayada.com> wrote in message
news:OS**************@TK2MSFTNGP04.phx.gbl...
"Koegel,Markus" <Ma***********@bc.boehringer-ingelheim.com> wrote in
message
news:e6**********@news.dtag.de... Hello,
I have to build a string in an asp file for an AD request:
strcmd = "<GC://dc=mycompany,dc=com>;(&(objectCategory=User)" &
"(samAccountName=" & strUserName & "));distinguishedName;subtree".
Then I am executing with
objCommand.CommandText = strcmd
Set rstRecordSet = objCommand.Execute
But <GC://dc=mycompany,dc=com> vanishes from the string (checked in a
output with response.write).
Can anybody help me?
When you used Response.Write did you also user Server.HTMLEncode to escape
<?
Response.Write Server.HTMLEncode(strcmd)
Thanks,
Markus