B
Björn Johasson
Hi,
I've made some VBscripts that searches Active Directory and I wish to make
some kind webinterface so our intranet users can use it. The problem is that
I have no asp experience. I searched around msdn etc. without finding any
good examples how to run the scripts from a webpage.
See bottom for a example script that is similar to mine.
Thanks,
BJ
-------------
Set objConnection = CreateObject("ADODB.Connection")
objConnection.Open "Provider=ADsDSOObject;"
Set objCommand = CreateObject("ADODB.Command")
objCommand.ActiveConnection = objConnection
objCommand.CommandText = _
"<LDAP://dc=NA,dc=fabrikam,dc=com>;;name;subtree"
Set objRecordSet = objCommand.Execute
While Not objRecordSet.EOF
Wscript.Echo objRecordSet.Fields("name")
objRecordSet.MoveNext
Wend
objConnection.Close
I've made some VBscripts that searches Active Directory and I wish to make
some kind webinterface so our intranet users can use it. The problem is that
I have no asp experience. I searched around msdn etc. without finding any
good examples how to run the scripts from a webpage.
See bottom for a example script that is similar to mine.
Thanks,
BJ
-------------
Set objConnection = CreateObject("ADODB.Connection")
objConnection.Open "Provider=ADsDSOObject;"
Set objCommand = CreateObject("ADODB.Command")
objCommand.ActiveConnection = objConnection
objCommand.CommandText = _
"<LDAP://dc=NA,dc=fabrikam,dc=com>;;name;subtree"
Set objRecordSet = objCommand.Execute
While Not objRecordSet.EOF
Wscript.Echo objRecordSet.Fields("name")
objRecordSet.MoveNext
Wend
objConnection.Close