Re: Server-side modem connection by Al
Al
Fri Mar 05 01:12:07 CST 2004
"Mick Turner" <c_at_man@hotmail.com> wrote in message
news:eo3OXKcAEHA.2600@TK2MSFTNGP09.phx.gbl...
> hi Al,
>
> I changed the user (Win 2000 Server) for the Web site so that the client
> needs to be Administrator in order to login into the Web site. I enter the
> address, Administrator username and the password I can login to the page.
> However, by trying the server-side version of the ActiveX component the
same
> error message arises. I can create the component normally, but I cannot
use
> its methods.
As I understand it, you can be authenticated to the site as anyone you'd
like. But when you run server side script it does not run in the context of
you being logged in to the server, but in the context of a service account
(IUSR). And that account is lacking privileges so that rogue users and
hackers cannot damage the server.
> Are there any considerations of how to write the component, if server-side
> hardware (modem) is to be used?
I don't know, but I don't think that that is what is at play here.
/Al
> I have absolutely no idea of how to work
> around this huge problem of ours.
>
> Mike
>
> "Al Dunbar [MS-MVP]" <alan-no-drub-spam@hotmail.com> wrote in message
> news:elruEzYAEHA.1036@TK2MSFTNGP10.phx.gbl...
> > It is likely a security issue. When running the script client-side, it
is
> > run under the credentials of the user. When run server-side, it is run
on
> > the server under the credentials of IUSR, which has limited power.
> >
> > /Al
> >
> >
> > "Mike" <anonymous@discussions.microsoft.com> wrote in message
> > news:01A2A39F-B88E-4D2E-95BB-8D716A374517@microsoft.com...
> > > hi all,
> > >
> > > We've made an ActiveX component for making a data call with a modem
> > attached to the PC. This following code works perfectly in a client-side
> > VBScript in the machine that has the required modem (defined in an .ini
> > file) installed and working.
> > >
> > > <HTML><HEAD><TITLE>Modem testpage</TITLE><SCRIPT LANGUAGE="VBScript">
> > > Sub Button1_OnClick
> > > Dim MLSes
> > > Set MLSes = CreateObject("Modem.Modem")
> > >
> > > MLSes.Begin
> > > MLses.Connect
> > > MLSes.SendCommand("strCommand")
> > > MLSes.Disconnect
> > > MLSes.End
> > >
> > > Set MLSes = Nothing
> > > End Sub
> > > </SCRIPT></HEAD><BODY><H3>Modem testpage</H3><HR><FORM><INPUT
> > NAME="BUTTON1" TYPE="BUTTON" VALUE="Send Command"></FORM></BODY></HTML>
> > >
> > >
> > > As said, this works in the client-side and the data call goes through.
> > However, by changing this to a server-side code, it fails:
> > >
> > > <%@LANGUAGE="VBSCRIPT"%><HTML><HEAD><TITLE>Modem testpage,
> > server-side</TITLE><%
> > > Dim MLSes
> > >
> > > Set MLSes = CreateObject("Modem.Modem")
> > >
> > > MLSes.Begin
> > > MLses.Connect
> > > MLSes.SendCommand("strCommand")
> > > MLSes.Disconnect
> > > MLSes.End
> > >
> > > Set MLSes = Nothing
> > > %></HEAD><BODY></BODY></HTML>
> > >
> > > This does not work anymore, it gives an error message:
> > >
> > > error '80004005'
> > > Unspecified error
> > >
> > > /Modemtest.asp, line 10
> > >
> > > The line 10 is the MLSes.Begin command, which is not working.
> > >
> > > Could this difference between client-side and server-side code be due
to
> > some security/permission issues? I haven't found anything regarding
> it.....
> > >
> > > My basic idea is that I have a Web browser based GUI, in which the
> client
> > can press a button, which establishes a modem connection FROM THE SERVER
> to
> > a REMOTE DEVICE for online data collection.
> > >
> > > Thanks in advance for any advice.
> > >
> > > Yours,
> > >
> > > Mike
> >
> >
>
>