Re: login script after setting up vpn connection

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



objNetwork.UserName should be giving you the Windows login on their local
machine as opposed to the AD credentials used to authenticate to the network
unless they are using Terminal Sessions to a published desktop after VPN.

Bart

"kris houben" <kris@xxxxxxxxxxxx> wrote in message
news:OnIJe.164559$9z6.8612955@xxxxxxxxxxxxxxxxxxxxxxxx
> Hello,
>
> we have setup vpn access towards our 2003 server
> i want to run a login script after users make a connection to the 2003
> server over vpn from their home computers.
> this script should map the p: drive to their personal folder (which is
under
> the shared map personalfolder\loginname)
>
> I found at that running a script after you make a vpn connection can be
done
> through connection manager (with cmak kit)
> But i have a problem with the mapping to the personal folders. here is the
> script i am using :
>
> Dim objNetwork
> Dim strDriveLetter, strRemotePath, strUserName
> strDriveLetter = "p:"
> strRemotepath = \\server\personalfolder\"
> StrUserName = objNetwork.UserName
> Set objNetwork = WScript.CreateObject("Wscript.Network")
> objNetwork.MapNetworkDrive strDriverLetter , strRemotePath&strUserName
> Wscript.Quit
>
> The problem is that this is not working because the strUserName resolves
to
> the username used to login locally to the workstation (in Windows
XP/2000).
> and not to the username used to setup the vpn connection. So this only
works
> when the username to login locally to the workstation and the username set
> in the vpn connection box are the same. Unfortunaly this is not always the
> case (as my network users have their own workstations at home and can
choose
> wathever login name locally). So i need i way to retrieve the username
used
> to setup the vpn connection towards the 2003 server. Does anyone know how
to
> get this through scripting or some other way ? Or does anyone has another
> solution to solve my problem (the only thing i need to do is to connect
the
> p: drive to the personal folder of the connected user)
>
> All help would be welcome
>
> Thanks,
>
>
> Kris Houben
> HyperSoft Belgium
>
>


.



Relevant Pages

  • Re: PHP Protect and select script
    ... You MUST store somewhere the username password combination. ... You post the username/password to the receiving script where you ... you must somehow look up the username password combinations. ... So I don't need to check anything - exept the login name / password ...
    (alt.php)
  • Re: PHP Protect and select script
    ... You MUST store somewhere the username password combination. ... You post the username/password to the receiving script where you ... // In case you want your pages protected, use a session. ... So I don't need to check anything - exept the login name / password ...
    (alt.php)
  • Re: opening two pages with one html form - using perl
    ... you could just run the script via ... if ($login eq 'Login') ... username and password and submits the form. ... browser window will open which will display the same username. ...
    (comp.infosystems.www.authoring.cgi)
  • Re: VPN CMAK Login script issue
    ... It seems that when I login to my external workstation under a different ... username and password than username and password I authenticate with through ... I'm not able to map drives and am prompted for a password for each ... >> connects and then runs our login script in sysvol. ...
    (microsoft.public.isa.vpn)
  • opening two pages with one html form - using perl
    ... I have one cgi script that looks in part like this: ... if ($login eq 'Login') ... username and password and submits the form. ... We now have a need to send the script to ANOTHER cgi script, ...
    (comp.infosystems.www.authoring.cgi)