|
 |
asp_web_howto thread: Intranet Login
Message #1 by "clover c" <callisto137@h...> on Thu, 17 Jan 2002 16:17:59 +0000
|
|
Hello everyone,
Was wondering if anyone has any suggestions for obtaining the work station
login of an intranet user and then allowing the user to access the site when
they log on to their work station as opposed to having to type a username
and password everytime they open/close a browser session. Is it possible to
obtain the workstation logon details using vb/javascript at all?? the
company runs novell netware (dunno if this makes a blind bit of difference!)
Please help!!
Thanks in advance,
Clover
_________________________________________________________________
Chat with friends online, try MSN Messenger: http://messenger.msn.com
Message #2 by "Craig Flannigan" <ckf@k...> on Thu, 17 Jan 2002 16:23:43 -0000
|
|
It does make a difference if you use Novell - you cannot do it.
If you were authenticated by an NT Server, then you could obtain the details
that way, but if you're using Novell, it's not so easy.
I don't think I've ever seen an answer to this question on here before.
Craig.
-----Original Message-----
From: clover c [mailto:callisto137@h...]
Sent: Thursday 17 January 2002 16:18
To: ASP Web HowTo
Subject: [asp_web_howto] Intranet Login
Hello everyone,
Was wondering if anyone has any suggestions for obtaining the work station
login of an intranet user and then allowing the user to access the site when
they log on to their work station as opposed to having to type a username
and password everytime they open/close a browser session. Is it possible to
obtain the workstation logon details using vb/javascript at all?? the
company runs novell netware (dunno if this makes a blind bit of difference!)
Please help!!
Thanks in advance,
Clover
_________________________________________________________________
Chat with friends online, try MSN Messenger: http://messenger.msn.com
$subst('Email.Unsub').
_____________________________________________________________________
This message has been checked for all known viruses by Star Internet
delivered through the MessageLabs Virus Scanning Service on behalf of
Kingfield Heath Ltd. For further information visit
http://www.star.net.uk/stats.asp
_____________________________________________________________________
This message has been checked for all known viruses by Star Internet
delivered through the MessageLabs Virus Scanning Service on behalf of Kingfield Heath Ltd. For further information visit
http://www.star.net.uk/stats.asp
Message #3 by "O'Hara, Elliott M" <EMOHARA@k...> on Thu, 17 Jan 2002 11:21:52 -0500
|
|
Client Side
<script language="javascript">
var WshNetwork = WScript.CreateObject("WScript.Network");
document.write(WshNetwork.UserName)
</script>
Server Side
Response.Write Request.ServerVariables("AUTH_USER")
I THINK that will work on Novell too...
Tell them to use Microsoft :~)
-----Original Message-----
From: clover c [mailto:callisto137@h...]
Sent: Thursday, January 17, 2002 11:18 AM
To: ASP Web HowTo
Subject: [asp_web_howto] Intranet Login
Hello everyone,
Was wondering if anyone has any suggestions for obtaining the work station
login of an intranet user and then allowing the user to access the site when
they log on to their work station as opposed to having to type a username
and password everytime they open/close a browser session. Is it possible to
obtain the workstation logon details using vb/javascript at all?? the
company runs novell netware (dunno if this makes a blind bit of difference!)
Please help!!
Thanks in advance,
Clover
_________________________________________________________________
Chat with friends online, try MSN Messenger: http://messenger.msn.com
$subst('Email.Unsub').
Message #4 by Oleg Kapeljushnik <c-oleg.kapeljushnik@w...> on Thu, 17 Jan 2002 11:30:06 -0500
|
|
You can configure your webserver
so it will allow access only to users who logged into this domain.
I am not sure if it will work with Novell (I guess it will).
You better check it with your system admin cause I think its just
configuration and you
don't need to write anything.
Oleg
-----Original Message-----
From: clover c [mailto:callisto137@h...]
Sent: January 17, 2002 11:18 AM
To: ASP Web HowTo
Subject: [asp_web_howto] Intranet Login
Hello everyone,
Was wondering if anyone has any suggestions for obtaining the work station
login of an intranet user and then allowing the user to access the site when
they log on to their work station as opposed to having to type a username
and password everytime they open/close a browser session. Is it possible to
obtain the workstation logon details using vb/javascript at all?? the
company runs novell netware (dunno if this makes a blind bit of difference!)
Please help!!
Thanks in advance,
Clover
_________________________________________________________________
Chat with friends online, try MSN Messenger: http://messenger.msn.com
$subst('Email.Unsub').
Message #5 by "Craig Flannigan" <ckf@k...> on Thu, 17 Jan 2002 16:31:28 -0000
|
|
Request.ServerVariables("AUTH_USER") won't work on Novell systems - :o(
And the client code you wrote doesn't work on ours either, but I think
that's down to how our IE browsers are set up.
-----Original Message-----
From: O'Hara, Elliott M [mailto:EMOHARA@k...]
Sent: Thursday 17 January 2002 16:22
To: ASP Web HowTo
Subject: [asp_web_howto] RE: Intranet Login
Client Side
<script language="javascript">
var WshNetwork = WScript.CreateObject("WScript.Network");
document.write(WshNetwork.UserName)
</script>
Server Side
Response.Write Request.ServerVariables("AUTH_USER")
I THINK that will work on Novell too...
Tell them to use Microsoft :~)
-----Original Message-----
From: clover c [mailto:callisto137@h...]
Sent: Thursday, January 17, 2002 11:18 AM
To: ASP Web HowTo
Subject: [asp_web_howto] Intranet Login
Hello everyone,
Was wondering if anyone has any suggestions for obtaining the work station
login of an intranet user and then allowing the user to access the site when
they log on to their work station as opposed to having to type a username
and password everytime they open/close a browser session. Is it possible to
obtain the workstation logon details using vb/javascript at all?? the
company runs novell netware (dunno if this makes a blind bit of difference!)
Please help!!
Thanks in advance,
Clover
_________________________________________________________________
Chat with friends online, try MSN Messenger: http://messenger.msn.com
$subst('Email.Unsub').
$subst('Email.Unsub').
_____________________________________________________________________
This message has been checked for all known viruses by Star Internet
delivered through the MessageLabs Virus Scanning Service on behalf of
Kingfield Heath Ltd. For further information visit
http://www.star.net.uk/stats.asp
_____________________________________________________________________
This message has been checked for all known viruses by Star Internet
delivered through the MessageLabs Virus Scanning Service on behalf of Kingfield Heath Ltd. For further information visit
http://www.star.net.uk/stats.asp
Message #6 by "Alex Shiell, ITS, EC, SE" <alex.shiell@s...> on Thu, 17 Jan 2002 16:40:11 -0000
|
|
If the users have to enter their username and password tha means the site is
set to basic authentication. If you have no requirement to identify the
user in any way, set the authentication type to anonymous. However, if your
intranet applications do need to identify the user, set the type to
challenge/response. To make these changes, go into IIS, then right click on
the website or directory and go into properties, then the directory security
tab.
Then, to obtain the username within an ASP its
sUsername = Request.ServerVariables("LOGON_USER")
or
sUsername = Request.ServerVariables("AUTH_USER")
You mention that your company uses Novell - this may or may not matter. If
the client OS is NT/2000/XP then the username and password will be passed on
automatically. If its 95/98/3.1 etc then it will depend on the Novell
client that is installed.
-----Original Message-----
From: clover c [mailto:callisto137@h...]
Sent: 17 January 2002 16:18
To: ASP Web HowTo
Subject: [asp_web_howto] Intranet Login
Hello everyone,
Was wondering if anyone has any suggestions for obtaining the work station
login of an intranet user and then allowing the user to access the site when
they log on to their work station as opposed to having to type a username
and password everytime they open/close a browser session. Is it possible to
obtain the workstation logon details using vb/javascript at all?? the
company runs novell netware (dunno if this makes a blind bit of difference!)
Please help!!
Thanks in advance,
Clover
_________________________________________________________________
Chat with friends online, try MSN Messenger: http://messenger.msn.com
$subst('Email.Unsub').
________________________________________________________________________
Scottish Enterprise Network
http://www.scottish-enterprise.com
Headquarters Address & Contact Numbers
150 Broomielaw
5 Atlantic Quay
Glasgow
G2 8LU.
Tel: +44 (0) 141 248 2700.
Fax: +44 (0)141 221 3217
This message is sent in confidence for the addressee only.
It may contain legally privileged information. The contents are not to
be disclosed to anyone other than the addressee. Unauthorised recipients
are requested to preserve this confidentiality and to advise the sender
immediately of any error in transmission.
Message #7 by Aaron.Mintz@d... on Thu, 17 Jan 2002 11:39:05 -0500
|
|
don't know if this has already been answered. but i achieved this by
creating a VB dll that accesses the UserName environ variable from the
client machine.
in order to make this work though you must go into the iis
manager and disable the [directory security] "allow anonymous access" option
of course this is assuming you are using iis.
-----Original Message-----
From: O'Hara, Elliott M [mailto:EMOHARA@k...]
Sent: Thursday, January 17, 2002 11:22 AM
To: ASP Web HowTo
Subject: [asp_web_howto] RE: Intranet Login
Client Side
<script language="javascript">
var WshNetwork = WScript.CreateObject("WScript.Network");
document.write(WshNetwork.UserName)
</script>
Server Side
Response.Write Request.ServerVariables("AUTH_USER")
I THINK that will work on Novell too...
Tell them to use Microsoft :~)
-----Original Message-----
From: clover c [mailto:callisto137@h...]
Sent: Thursday, January 17, 2002 11:18 AM
To: ASP Web HowTo
Subject: [asp_web_howto] Intranet Login
Hello everyone,
Was wondering if anyone has any suggestions for obtaining the work station
login of an intranet user and then allowing the user to access the site when
they log on to their work station as opposed to having to type a username
and password everytime they open/close a browser session. Is it possible to
obtain the workstation logon details using vb/javascript at all?? the
company runs novell netware (dunno if this makes a blind bit of difference!)
Please help!!
Thanks in advance,
Clover
_________________________________________________________________
Chat with friends online, try MSN Messenger: http://messenger.msn.com
$subst('Email.Unsub').
$subst('Email.Unsub').
Message #8 by "Alex Shiell, ITS, EC, SE" <alex.shiell@s...> on Thu, 17 Jan 2002 16:53:03 -0000
|
|
I was assuming here that the intranet server is NT (seeing as this is an ASP
list) - if your intranet is on a novell server then I haven't a clue!
-----Original Message-----
From: Alex Shiell, ITS, EC, SE
Sent: 17 January 2002 16:40
To: ASP Web HowTo
Subject: [asp_web_howto] RE: Intranet Login
If the users have to enter their username and password tha means the site is
set to basic authentication. If you have no requirement to identify the
user in any way, set the authentication type to anonymous. However, if your
intranet applications do need to identify the user, set the type to
challenge/response. To make these changes, go into IIS, then right click on
the website or directory and go into properties, then the directory security
tab.
Then, to obtain the username within an ASP its
sUsername = Request.ServerVariables("LOGON_USER")
or
sUsername = Request.ServerVariables("AUTH_USER")
You mention that your company uses Novell - this may or may not matter. If
the client OS is NT/2000/XP then the username and password will be passed on
automatically. If its 95/98/3.1 etc then it will depend on the Novell
client that is installed.
-----Original Message-----
From: clover c [mailto:callisto137@h...]
Sent: 17 January 2002 16:18
To: ASP Web HowTo
Subject: [asp_web_howto] Intranet Login
Hello everyone,
Was wondering if anyone has any suggestions for obtaining the work station
login of an intranet user and then allowing the user to access the site when
they log on to their work station as opposed to having to type a username
and password everytime they open/close a browser session. Is it possible to
obtain the workstation logon details using vb/javascript at all?? the
company runs novell netware (dunno if this makes a blind bit of difference!)
Please help!!
Thanks in advance,
Clover
_________________________________________________________________
Chat with friends online, try MSN Messenger: http://messenger.msn.com
$subst('Email.Unsub').
________________________________________________________________________
Scottish Enterprise Network
http://www.scottish-enterprise.com
Headquarters Address & Contact Numbers
150 Broomielaw
5 Atlantic Quay
Glasgow
G2 8LU.
Tel: +44 (0) 141 248 2700.
Fax: +44 (0)141 221 3217
This message is sent in confidence for the addressee only.
It may contain legally privileged information. The contents are not to
be disclosed to anyone other than the addressee. Unauthorised recipients
are requested to preserve this confidentiality and to advise the sender
immediately of any error in transmission.
$subst('Email.Unsub').
________________________________________________________________________
Scottish Enterprise Network
http://www.scottish-enterprise.com
Headquarters Address & Contact Numbers
150 Broomielaw
5 Atlantic Quay
Glasgow
G2 8LU.
Tel: +44 (0) 141 248 2700.
Fax: +44 (0)141 221 3217
This message is sent in confidence for the addressee only.
It may contain legally privileged information. The contents are not to
be disclosed to anyone other than the addressee. Unauthorised recipients
are requested to preserve this confidentiality and to advise the sender
immediately of any error in transmission.
Message #9 by dont worry <aspmailbox@y...> on Thu, 17 Jan 2002 09:00:46 -0800 (PST)
|
|
I think there is a way to do with with NOVELL. I'll
get back to you asap.
DW
--- "Alex Shiell, ITS, EC, SE"
<alex.shiell@s...> wrote:
> I was assuming here that the intranet server is NT
> (seeing as this is an ASP
> list) - if your intranet is on a novell server then
> I haven't a clue!
>
> -----Original Message-----
> From: Alex Shiell, ITS, EC, SE
> Sent: 17 January 2002 16:40
> To: ASP Web HowTo
> Subject: [asp_web_howto] RE: Intranet Login
>
>
> If the users have to enter their username and
> password tha means the site is
> set to basic authentication. If you have no
> requirement to identify the
> user in any way, set the authentication type to
> anonymous. However, if your
> intranet applications do need to identify the user,
> set the type to
> challenge/response. To make these changes, go into
> IIS, then right click on
> the website or directory and go into properties,
> then the directory security
> tab.
>
> Then, to obtain the username within an ASP its
>
> sUsername = Request.ServerVariables("LOGON_USER")
>
> or
>
> sUsername = Request.ServerVariables("AUTH_USER")
>
> You mention that your company uses Novell - this may
> or may not matter. If
> the client OS is NT/2000/XP then the username and
> password will be passed on
> automatically. If its 95/98/3.1 etc then it will
> depend on the Novell
> client that is installed.
>
>
>
> -----Original Message-----
> From: clover c [mailto:callisto137@h...]
> Sent: 17 January 2002 16:18
> To: ASP Web HowTo
> Subject: [asp_web_howto] Intranet Login
>
>
> Hello everyone,
>
> Was wondering if anyone has any suggestions for
> obtaining the work station
> login of an intranet user and then allowing the user
> to access the site when
>
> they log on to their work station as opposed to
> having to type a username
> and password everytime they open/close a browser
> session. Is it possible to
> obtain the workstation logon details using
> vb/javascript at all?? the
> company runs novell netware (dunno if this makes a
> blind bit of difference!)
>
> Please help!!
> Thanks in advance,
> Clover
>
>
>
_________________________________________________________________
> Chat with friends online, try MSN Messenger:
> http://messenger.msn.com
>
>
> $subst('Email.Unsub').
>
>
________________________________________________________________________
> Scottish Enterprise Network
> http://www.scottish-enterprise.com
>
> Headquarters Address & Contact Numbers
>
> 150 Broomielaw
> 5 Atlantic Quay
> Glasgow
> G2 8LU.
> Tel: +44 (0) 141 248 2700.
> Fax: +44 (0)141 221 3217
>
> This message is sent in confidence for the
> addressee only.
> It may contain legally privileged information. The
> contents are not to
> be disclosed to anyone other than the addressee.
> Unauthorised recipients
> are requested to preserve this confidentiality and
> to advise the sender
> immediately of any error in transmission.
>
>
>
> $subst('Email.Unsub').
>
>
________________________________________________________________________
> Scottish Enterprise Network
> http://www.scottish-enterprise.com
>
> Headquarters Address & Contact Numbers
>
> 150 Broomielaw
> 5 Atlantic Quay
> Glasgow
> G2 8LU.
> Tel: +44 (0) 141 248 2700.
> Fax: +44 (0)141 221 3217
>
> This message is sent in confidence for the
> addressee only.
> It may contain legally privileged information. The
> contents are not to
> be disclosed to anyone other than the addressee.
> Unauthorised recipients
> are requested to preserve this confidentiality and
> to advise the sender
> immediately of any error in transmission.
>
>
>
$subst('Email.Unsub').
__________________________________________________
Do You Yahoo!?
Send FREE video emails in Yahoo! Mail!
http://promo.yahoo.com/videomail/
Message #10 by "Tim Morford" <tmorford@n...> on Thu, 17 Jan 2002 12:25:43 -0500
|
|
Yea I think you can do it, I was reading in "professional ASP Data Access" This is what they say.
Set NWDir1 = createobject("NWDirLib.NWdirCtrl.1")
NWDir1.FullName = "NDS:\\" + TreeName + "\" + OU1
NWName = NWDri1.FullNameFromTreeandContext(TreeName, "." & Vlogin & "." & OU1
set entry = NWDir1.FindEntry(NWName)
retCode = entry.ValidatePassword(vPassword)
or something to that effect.
Tim Morford
-----Original Message-----
From: clover c [mailto:callisto137@h...]
Sent: Thursday, January 17, 2002 11:18 AM
To: ASP Web HowTo
Subject: [asp_web_howto] Intranet Login
Hello everyone,
Was wondering if anyone has any suggestions for obtaining the work station
login of an intranet user and then allowing the user to access the site when
they log on to their work station as opposed to having to type a username
and password everytime they open/close a browser session. Is it possible to
obtain the workstation logon details using vb/javascript at all?? the
company runs novell netware (dunno if this makes a blind bit of difference!)
Please help!!
Thanks in advance,
Clover
_________________________________________________________________
Chat with friends online, try MSN Messenger: http://messenger.msn.com
Message #11 by "Drew, Ron" <RDrew@B...> on Thu, 17 Jan 2002 15:12:02 -0500
|
|
'Don't think you can get password..but you can get the Username
Response.Write(Request.ServerVariables("LOGON_USER"))
'This contains DOMAIN\Username
'To get only the username...
Dim strNTUser, iPos
strNTUser =3D RTrim(Request.ServerVariables("LOGON_USER"))
iPos =3D Len(strNTUser) - InStr(1, strNTUser,"\",1)
strNTUser =3D Right(strNTUser, iPos)
' or use the split function...same results
Dim arrSomething, strNTUser
arrSomething =3D split(Request.ServerVariables("LOGON_USER"),"\")
strNTUser =3D arrSomething(1)
-----Original Message-----
From: clover c [mailto:callisto137@h...]
Sent: Thursday, January 17, 2002 11:18 AM
To: ASP Web HowTo
Subject: [asp_web_howto] Intranet Login
Hello everyone,
Was wondering if anyone has any suggestions for obtaining the work
station
login of an intranet user and then allowing the user to access the site
when
they log on to their work station as opposed to having to type a
username
and password everytime they open/close a browser session. Is it possible
to
obtain the workstation logon details using vb/javascript at all?? the
company runs novell netware (dunno if this makes a blind bit of
difference!)
Please help!!
Thanks in advance,
Clover
_________________________________________________________________
Chat with friends online, try MSN Messenger: http://messenger.msn.com
$subst('Email.Unsub').
Message #12 by "clover c" <callisto137@h...> on Thu, 17 Jan 2002 23:38:14 +0000
|
|
Hey,
Thanks everyone for your replies. I'm not back in work til Monday now so I'm
not going to be able to test out your solutions. For some reason I'm not
feeeling very positive about the Server.Variables stuff, but we'll see! I've
got one of those bosses that expects everything to be possible using a
scripting language, which makes my job *very* difficult.
I'm getting seriously frustrated with the limitations of ASP, but thats
another story.
Thanks again for all you help/suggestions,
Clo
_________________________________________________________________
MSN Photos is the easiest way to share and print your photos:
http://photos.msn.com/support/worldwide.aspx
Message #13 by nimesh vijayan <vnimesh@y...> on Thu, 17 Jan 2002 18:53:01 -0800 (PST)
|
|
Hi Aaron,
Isn't this what we call single sign-on.??
(correct me if i'm wrong). I never thought it is
possible to get the workstation username.. We also use
Novell's log-in (work station), and hence, users hate
multiple log-in. I would really appreciate, if you
guide me to get the VB DLL that u used...
Thanx All.
Bala.
--- Aaron.Mintz@d... wrote:
> don't know if this has already been answered. but i
> achieved this by
> creating a VB dll that accesses the UserName environ
> variable from the
> client machine.
>
> in order to make this work though you must go into
> the iis
>
> manager and disable the [directory security] "allow
> anonymous access" option
>
> of course this is assuming you are using iis.
>
>
>
> -----Original Message-----
> From: O'Hara, Elliott M
> [mailto:EMOHARA@k...]
> Sent: Thursday, January 17, 2002 11:22 AM
> To: ASP Web HowTo
> Subject: [asp_web_howto] RE: Intranet Login
>
>
> Client Side
> <script language="javascript">
> var WshNetwork
> WScript.CreateObject("WScript.Network");
> document.write(WshNetwork.UserName)
> </script>
>
> Server Side
>
> Response.Write Request.ServerVariables("AUTH_USER")
>
>
> I THINK that will work on Novell too...
> Tell them to use Microsoft :~)
>
> -----Original Message-----
> From: clover c [mailto:callisto137@h...]
> Sent: Thursday, January 17, 2002 11:18 AM
> To: ASP Web HowTo
> Subject: [asp_web_howto] Intranet Login
>
>
> Hello everyone,
>
> Was wondering if anyone has any suggestions for
> obtaining the work station
> login of an intranet user and then allowing the user
> to access the site when
>
> they log on to their work station as opposed to
> having to type a username
> and password everytime they open/close a browser
> session. Is it possible to
> obtain the workstation logon details using
> vb/javascript at all?? the
> company runs novell netware (dunno if this makes a
> blind bit of difference!)
>
> Please help!!
> Thanks in advance,
> Clover
>
>
>
_________________________________________________________________
> Chat with friends online, try MSN Messenger:
> http://messenger.msn.com
>
>
> $subst('Email.Unsub').
>
> $subst('Email.Unsub').
>
$subst('Email.Unsub').
__________________________________________________
Do You Yahoo!?
Send FREE video emails in Yahoo! Mail!
http://promo.yahoo.com/videomail/
Message #14 by nimesh vijayan <vnimesh@y...> on Thu, 17 Jan 2002 18:54:45 -0800 (PST)
|
|
Hi Hora,
I tried this code and got an error message 'Wscript is
undefinmed' :(..
Rgds,
Bala
--- "O'Hara, Elliott M" <EMOHARA@k...>
wrote:
> Client Side
> <script language="javascript">
> var WshNetwork
> WScript.CreateObject("WScript.Network");
> document.write(WshNetwork.UserName)
> </script>
>
> Server Side
>
> Response.Write Request.ServerVariables("AUTH_USER")
>
>
> I THINK that will work on Novell too...
> Tell them to use Microsoft :~)
>
> -----Original Message-----
> From: clover c [mailto:callisto137@h...]
> Sent: Thursday, January 17, 2002 11:18 AM
> To: ASP Web HowTo
> Subject: [asp_web_howto] Intranet Login
>
>
> Hello everyone,
>
> Was wondering if anyone has any suggestions for
> obtaining the work station
> login of an intranet user and then allowing the user
> to access the site when
>
> they log on to their work station as opposed to
> having to type a username
> and password everytime they open/close a browser
> session. Is it possible to
> obtain the workstation logon details using
> vb/javascript at all?? the
> company runs novell netware (dunno if this makes a
> blind bit of difference!)
>
> Please help!!
> Thanks in advance,
> Clover
>
>
>
_________________________________________________________________
> Chat with friends online, try MSN Messenger:
> http://messenger.msn.com
>
>
> $subst('Email.Unsub').
>
$subst('Email.Unsub').
__________________________________________________
Do You Yahoo!?
Send FREE video emails in Yahoo! Mail!
http://promo.yahoo.com/videomail/
Message #15 by "Craig Flannigan" <ckf@k...> on Fri, 18 Jan 2002 09:41:51 -0000
|
|
This will not work if you log in via a Novell Server - you need to be
logging into a NT/Windows 2000 based server in order for this code to work.
-----Original Message-----
From: Drew, Ron [mailto:RDrew@B...]
Sent: Thursday 17 January 2002 20:12
To: ASP Web HowTo
Subject: [asp_web_howto] RE: Intranet Login
'Don't think you can get password..but you can get the Username
Response.Write(Request.ServerVariables("LOGON_USER"))
'This contains DOMAIN\Username
'To get only the username...
Dim strNTUser, iPos
strNTUser = RTrim(Request.ServerVariables("LOGON_USER"))
iPos = Len(strNTUser) - InStr(1, strNTUser,"\",1)
strNTUser = Right(strNTUser, iPos)
' or use the split function...same results
Dim arrSomething, strNTUser
arrSomething = split(Request.ServerVariables("LOGON_USER"),"\")
strNTUser = arrSomething(1)
-----Original Message-----
From: clover c [mailto:callisto137@h...]
Sent: Thursday, January 17, 2002 11:18 AM
To: ASP Web HowTo
Subject: [asp_web_howto] Intranet Login
Hello everyone,
Was wondering if anyone has any suggestions for obtaining the work
station
login of an intranet user and then allowing the user to access the site
when
they log on to their work station as opposed to having to type a
username
and password everytime they open/close a browser session. Is it possible
to
obtain the workstation logon details using vb/javascript at all?? the
company runs novell netware (dunno if this makes a blind bit of
difference!)
Please help!!
Thanks in advance,
Clover
_________________________________________________________________
Chat with friends online, try MSN Messenger: http://messenger.msn.com
$subst('Email.Unsub').
$subst('Email.Unsub').
_____________________________________________________________________
This message has been checked for all known viruses by Star Internet
delivered through the MessageLabs Virus Scanning Service on behalf of
Kingfield Heath Ltd. For further information visit
http://www.star.net.uk/stats.asp
_____________________________________________________________________
This message has been checked for all known viruses by Star Internet
delivered through the MessageLabs Virus Scanning Service on behalf of Kingfield Heath Ltd. For further information visit
http://www.star.net.uk/stats.asp
Message #16 by "Craig Flannigan" <ckf@k...> on Fri, 18 Jan 2002 09:44:26 -0000
|
|
Where do you get the DLL for that?
I got the following error "ActiveX component can't create object:
'NWDirLib.NWdirCtrl.1' " as I guess I don't have the correct OCX/DLL
The Novell Client is installed on my machine, so not sure where to get it!
Cheers
Craig.
-----Original Message-----
From: Tim Morford [mailto:tmorford@n...]
Sent: Thursday 17 January 2002 17:26
To: ASP Web HowTo
Subject: [asp_web_howto] RE: Intranet Login
Yea I think you can do it, I was reading in "professional ASP Data Access"
This is what they say.
Set NWDir1 = createobject("NWDirLib.NWdirCtrl.1")
NWDir1.FullName = "NDS:\\" + TreeName + "\" + OU1
NWName = NWDri1.FullNameFromTreeandContext(TreeName, "." & Vlogin & "." &
OU1
set entry = NWDir1.FindEntry(NWName)
retCode = entry.ValidatePassword(vPassword)
or something to that effect.
Tim Morford
-----Original Message-----
From: clover c [mailto:callisto137@h...]
Sent: Thursday, January 17, 2002 11:18 AM
To: ASP Web HowTo
Subject: [asp_web_howto] Intranet Login
Hello everyone,
Was wondering if anyone has any suggestions for obtaining the work station
login of an intranet user and then allowing the user to access the site when
they log on to their work station as opposed to having to type a username
and password everytime they open/close a browser session. Is it possible to
obtain the workstation logon details using vb/javascript at all?? the
company runs novell netware (dunno if this makes a blind bit of difference!)
Please help!!
Thanks in advance,
Clover
_________________________________________________________________
Chat with friends online, try MSN Messenger: http://messenger.msn.com
$subst('Email.Unsub').
$subst('Email.Unsub').
_____________________________________________________________________
This message has been checked for all known viruses by Star Internet
delivered through the MessageLabs Virus Scanning Service on behalf of
Kingfield Heath Ltd. For further information visit
http://www.star.net.uk/stats.asp
_____________________________________________________________________
This message has been checked for all known viruses by Star Internet
delivered through the MessageLabs Virus Scanning Service on behalf of Kingfield Heath Ltd. For further information visit
http://www.star.net.uk/stats.asp
Message #17 by Aaron.Mintz@d... on Fri, 18 Jan 2002 09:22:55 -0500
|
|
we too have the same problem. Users log into Novell and don't want to login
again.
here is the dll code, and remember you must turn off the anonymous access
option in the iis manager or this code will only return a generic internet
user id.
hope it works.
open a vb activex dll project
in a class module enter the below code.
Public Function GetUserName()
GetUserName = Get_User_Name
End Function
in a module enter the below code.
Option Explicit
Declare Function GetUserName Lib "advapi32.dll" Alias "GetUserNameA" _
(ByVal lpBuffer As String, nSize As Long) As Long
Function Get_User_Name()
Dim lpBuff As String * 25
Dim ret As Long, username As String
ret = GetUserName(lpBuff, 25)
username = Left(lpBuff, InStr(lpBuff, Chr(0)) - 1)
Get_User_Name = username
End Function
compile the dll and them from an asp page call it using something like the
below line.
i have other functions compiled in this dll so my naming is a little vague
but i named the
dll OFACwordrpt and my dll class is named wordRPTfunctions.
hope this works
set Obj = createobject("OFACwordRpt.wordRPTfunctions")
vEvar = Obj.getusername()
'vEvar = Obj.getEnvironVariables()
response.write vEvar
response.end
-----Original Message-----
From: nimesh vijayan [mailto:vnimesh@y...]
Sent: Thursday, January 17, 2002 9:53 PM
To: ASP Web HowTo
Subject: [asp_web_howto] RE: Intranet Login
Hi Aaron,
Isn't this what we call single sign-on.??
(correct me if i'm wrong). I never thought it is
possible to get the workstation username.. We also use
Novell's log-in (work station), and hence, users hate
multiple log-in. I would really appreciate, if you
guide me to get the VB DLL that u used...
Thanx All.
Bala.
--- Aaron.Mintz@d... wrote:
> don't know if this has already been answered. but i
> achieved this by
> creating a VB dll that accesses the UserName environ
> variable from the
> client machine.
>
> in order to make this work though you must go into
> the iis
>
> manager and disable the [directory security] "allow
> anonymous access" option
>
> of course this is assuming you are using iis.
>
>
>
> -----Original Message-----
> From: O'Hara, Elliott M
> [mailto:EMOHARA@k...]
> Sent: Thursday, January 17, 2002 11:22 AM
> To: ASP Web HowTo
> Subject: [asp_web_howto] RE: Intranet Login
>
>
> Client Side
> <script language="javascript">
> var WshNetwork
> WScript.CreateObject("WScript.Network");
> document.write(WshNetwork.UserName)
> </script>
>
> Server Side
>
> Response.Write Request.ServerVariables("AUTH_USER")
>
>
> I THINK that will work on Novell too...
> Tell them to use Microsoft :~)
>
> -----Original Message-----
> From: clover c [mailto:callisto137@h...]
> Sent: Thursday, January 17, 2002 11:18 AM
> To: ASP Web HowTo
> Subject: [asp_web_howto] Intranet Login
>
>
> Hello everyone,
>
> Was wondering if anyone has any suggestions for
> obtaining the work station
> login of an intranet user and then allowing the user
> to access the site when
>
> they log on to their work station as opposed to
> having to type a username
> and password everytime they open/close a browser
> session. Is it possible to
> obtain the workstation logon details using
> vb/javascript at all?? the
> company runs novell netware (dunno if this makes a
> blind bit of difference!)
>
> Please help!!
> Thanks in advance,
> Clover
>
>
>
_________________________________________________________________
> Chat with friends online, try MSN Messenger:
> http://messenger.msn.com
>
>
> $subst('Email.Unsub').
>
> $subst('Email.Unsub').
>
$subst('Email.Unsub').
__________________________________________________
Do You Yahoo!?
Send FREE video emails in Yahoo! Mail!
http://promo.yahoo.com/videomail/
$subst('Email.Unsub').
Message #18 by nimesh vijayan <vnimesh@y...> on Fri, 18 Jan 2002 21:56:26 -0800 (PST)
|
|
Hi Aaron..
I have tried this. It returns
'IUSR_INTRA_DEV01'. INTRA_DEV01 is the server name. I
tried to call the asp page from different workstation
and i get this is as result. It doent return back the
workstation Novellid.. PLs help..
Thanx for yr help.
--- Aaron.Mintz@d... wrote:
> we too have the same problem. Users log into Novell
> and don't want to login
> again.
>
> here is the dll code, and remember you must turn off
> the anonymous access
> option in the iis manager or this code will only
> return a generic internet
> user id.
>
> hope it works.
>
> open a vb activex dll project
>
> in a class module enter the below code.
>
> Public Function GetUserName()
>
> GetUserName = Get_User_Name
>
> End Function
>
>
> in a module enter the below code.
>
> Option Explicit
>
> Declare Function GetUserName Lib "advapi32.dll"
> Alias "GetUserNameA" _
> (ByVal lpBuffer As String, nSize As Long) As Long
>
>
> Function Get_User_Name()
>
> Dim lpBuff As String * 25
> Dim ret As Long, username As String
>
> ret = GetUserName(lpBuff, 25)
> username = Left(lpBuff, InStr(lpBuff, Chr(0)) - 1)
>
> Get_User_Name = username
>
> End Function
>
>
> compile the dll and them from an asp page call it
> using something like the
> below line.
>
> i have other functions compiled in this dll so my
> naming is a little vague
> but i named the
> dll OFACwordrpt and my dll class is named
> wordRPTfunctions.
>
> hope this works
>
> set Obj
> createobject("OFACwordRpt.wordRPTfunctions")
> vEvar = Obj.getusername()
> 'vEvar = Obj.getEnvironVariables()
>
> response.write vEvar
> response.end
>
>
>
>
>
>
>
>
>
>
> -----Original Message-----
> From: nimesh vijayan [mailto:vnimesh@y...]
> Sent: Thursday, January 17, 2002 9:53 PM
> To: ASP Web HowTo
> Subject: [asp_web_howto] RE: Intranet Login
>
>
> Hi Aaron,
>
> Isn't this what we call single sign-on.??
> (correct me if i'm wrong). I never thought it is
> possible to get the workstation username.. We also
> use
> Novell's log-in (work station), and hence, users
> hate
> multiple log-in. I would really appreciate, if you
> guide me to get the VB DLL that u used...
> Thanx All.
> Bala.
>
> --- Aaron.Mintz@d... wrote:
> > don't know if this has already been answered. but
> i
> > achieved this by
> > creating a VB dll that accesses the UserName
> environ
> > variable from the
> > client machine.
> >
> > in order to make this work though you must go into
> > the iis
> >
> > manager and disable the [directory security]
> "allow
> > anonymous access" option
> >
> > of course this is assuming you are using iis.
> >
> >
> >
> > -----Original Message-----
> > From: O'Hara, Elliott M
> > [mailto:EMOHARA@k...]
> > Sent: Thursday, January 17, 2002 11:22 AM
> > To: ASP Web HowTo
> > Subject: [asp_web_howto] RE: Intranet Login
> >
> >
> > Client Side
> > <script language="javascript">
> > var WshNetwork
> > WScript.CreateObject("WScript.Network");
> > document.write(WshNetwork.UserName)
> > </script>
> >
> > Server Side
> >
> > Response.Write
> Request.ServerVariables("AUTH_USER")
> >
> >
> > I THINK that will work on Novell too...
> > Tell them to use Microsoft :~)
> >
> > -----Original Message-----
> > From: clover c [mailto:callisto137@h...]
> > Sent: Thursday, January 17, 2002 11:18 AM
> > To: ASP Web HowTo
> > Subject: [asp_web_howto] Intranet Login
> >
> >
> > Hello everyone,
> >
> > Was wondering if anyone has any suggestions for
> > obtaining the work station
> > login of an intranet user and then allowing the
> user
> > to access the site when
> >
> > they log on to their work station as opposed to
> > having to type a username
> > and password everytime they open/close a browser
> > session. Is it possible to
> > obtain the workstation logon details using
> > vb/javascript at all?? the
> > company runs novell netware (dunno if this makes a
> > blind bit of difference!)
> >
> > Please help!!
> > Thanks in advance,
> > Clover
> >
> >
> >
>
_________________________________________________________________
> > Chat with friends online, try MSN Messenger:
> > http://messenger.msn.com
> >
> >
> > $subst('Email.Unsub').
> >
> > $subst('Email.Unsub').
> >
> $subst('Email.Unsub').
>
>
> __________________________________________________
> Do You Yahoo!?
> Send FREE video emails in Yahoo! Mail!
> http://promo.yahoo.com/videomail/
>
>
=== message truncated ===
__________________________________________________
Do You Yahoo!?
Send FREE video emails in Yahoo! Mail!
http://promo.yahoo.com/videomail/
Message #19 by "Craig Flannigan" <ckf@k...> on Mon, 21 Jan 2002 08:43:06 -0000
|
|
Have you remembered to disable anonymous access?
"remember you must turn off the anonymous access
option in the iis manager or this code will only return a generic internet
user id."
Your !USR_MachineName" is the generic one.
-----Original Message-----
From: nimesh vijayan [mailto:vnimesh@y...]
Sent: Saturday 19 January 2002 05:56
To: ASP Web HowTo
Subject: [asp_web_howto] RE: Intranet Login
Hi Aaron..
I have tried this. It returns
'IUSR_INTRA_DEV01'. INTRA_DEV01 is the server name. I
tried to call the asp page from different workstation
and i get this is as result. It doent return back the
workstation Novellid.. PLs help..
Thanx for yr help.
--- Aaron.Mintz@d... wrote:
> we too have the same problem. Users log into Novell
> and don't want to login
> again.
>
> here is the dll code, and remember you must turn off
> the anonymous access
> option in the iis manager or this code will only
> return a generic internet
> user id.
>
> hope it works.
>
> open a vb activex dll project
>
> in a class module enter the below code.
>
> Public Function GetUserName()
>
> GetUserName = Get_User_Name
>
> End Function
>
>
> in a module enter the below code.
>
> Option Explicit
>
> Declare Function GetUserName Lib "advapi32.dll"
> Alias "GetUserNameA" _
> (ByVal lpBuffer As String, nSize As Long) As Long
>
>
> Function Get_User_Name()
>
> Dim lpBuff As String * 25
> Dim ret As Long, username As String
>
> ret = GetUserName(lpBuff, 25)
> username = Left(lpBuff, InStr(lpBuff, Chr(0)) - 1)
>
> Get_User_Name = username
>
> End Function
>
>
> compile the dll and them from an asp page call it
> using something like the
> below line.
>
> i have other functions compiled in this dll so my
> naming is a little vague
> but i named the
> dll OFACwordrpt and my dll class is named
> wordRPTfunctions.
>
> hope this works
>
> set Obj
> createobject("OFACwordRpt.wordRPTfunctions")
> vEvar = Obj.getusername()
> 'vEvar = Obj.getEnvironVariables()
>
> response.write vEvar
> response.end
>
>
>
>
>
>
>
>
>
>
> -----Original Message-----
> From: nimesh vijayan [mailto:vnimesh@y...]
> Sent: Thursday, January 17, 2002 9:53 PM
> To: ASP Web HowTo
> Subject: [asp_web_howto] RE: Intranet Login
>
>
> Hi Aaron,
>
> Isn't this what we call single sign-on.??
> (correct me if i'm wrong). I never thought it is
> possible to get the workstation username.. We also
> use
> Novell's log-in (work station), and hence, users
> hate
> multiple log-in. I would really appreciate, if you
> guide me to get the VB DLL that u used...
> Thanx All.
> Bala.
>
> --- Aaron.Mintz@d... wrote:
> > don't know if this has already been answered. but
> i
> > achieved this by
> > creating a VB dll that accesses the UserName
> environ
> > variable from the
> > client machine.
> >
> > in order to make this work though you must go into
> > the iis
> >
> > manager and disable the [directory security]
> "allow
> > anonymous access" option
> >
> > of course this is assuming you are using iis.
> >
> >
> >
> > -----Original Message-----
> > From: O'Hara, Elliott M
> > [mailto:EMOHARA@k...]
> > Sent: Thursday, January 17, 2002 11:22 AM
> > To: ASP Web HowTo
> > Subject: [asp_web_howto] RE: Intranet Login
> >
> >
> > Client Side
> > <script language="javascript">
> > var WshNetwork
> > WScript.CreateObject("WScript.Network");
> > document.write(WshNetwork.UserName)
> > </script>
> >
> > Server Side
> >
> > Response.Write
> Request.ServerVariables("AUTH_USER")
> >
> >
> > I THINK that will work on Novell too...
> > Tell them to use Microsoft :~)
> >
> > -----Original Message-----
> > From: clover c [mailto:callisto137@h...]
> > Sent: Thursday, January 17, 2002 11:18 AM
> > To: ASP Web HowTo
> > Subject: [asp_web_howto] Intranet Login
> >
> >
> > Hello everyone,
> >
> > Was wondering if anyone has any suggestions for
> > obtaining the work station
> > login of an intranet user and then allowing the
> user
> > to access the site when
> >
> > they log on to their work station as opposed to
> > having to type a username
> > and password everytime they open/close a browser
> > session. Is it possible to
> > obtain the workstation logon details using
> > vb/javascript at all?? the
> > company runs novell netware (dunno if this makes a
> > blind bit of difference!)
> >
> > Please help!!
> > Thanks in advance,
> > Clover
> >
> >
> >
>
_________________________________________________________________
> > Chat with friends online, try MSN Messenger:
> > http://messenger.msn.com
> >
> >
> > $subst('Email.Unsub').
> >
> > $subst('Email.Unsub').
> >
> $subst('Email.Unsub').
>
>
> __________________________________________________
> Do You Yahoo!?
> Send FREE video emails in Yahoo! Mail!
> http://promo.yahoo.com/videomail/
>
>
=== message truncated ===
__________________________________________________
Do You Yahoo!?
Send FREE video emails in Yahoo! Mail!
http://promo.yahoo.com/videomail/
$subst('Email.Unsub').
_____________________________________________________________________
This message has been checked for all known viruses by Star Internet
delivered through the MessageLabs Virus Scanning Service on behalf of
Kingfield Heath Ltd. For further information visit
http://www.star.net.uk/stats.asp
_____________________________________________________________________
This message has been checked for all known viruses by Star Internet
delivered through the MessageLabs Virus Scanning Service on behalf of Kingfield Heath Ltd. For further information visit
http://www.star.net.uk/stats.asp
Message #20 by Aaron.Mintz@d... on Mon, 21 Jan 2002 12:28:31 -0500
|
|
go to the iis manager and make sure the 'anonymous access' option on the
directory security tab is unchecked. That should fix your problem
-----Original Message-----
From: nimesh vijayan [mailto:vnimesh@y...]
Sent: Saturday, January 19, 2002 12:56 AM
To: ASP Web HowTo
Subject: [asp_web_howto] RE: Intranet Login
Hi Aaron..
I have tried this. It returns
'IUSR_INTRA_DEV01'. INTRA_DEV01 is the server name. I
tried to call the asp page from different workstation
and i get this is as result. It doent return back the
workstation Novellid.. PLs help..
Thanx for yr help.
--- Aaron.Mintz@d... wrote:
> we too have the same problem. Users log into Novell
> and don't want to login
> again.
>
> here is the dll code, and remember you must turn off
> the anonymous access
> option in the iis manager or this code will only
> return a generic internet
> user id.
>
> hope it works.
>
> open a vb activex dll project
>
> in a class module enter the below code.
>
> Public Function GetUserName()
>
> GetUserName = Get_User_Name
>
> End Function
>
>
> in a module enter the below code.
>
> Option Explicit
>
> Declare Function GetUserName Lib "advapi32.dll"
> Alias "GetUserNameA" _
> (ByVal lpBuffer As String, nSize As Long) As Long
>
>
> Function Get_User_Name()
>
> Dim lpBuff As String * 25
> Dim ret As Long, username As String
>
> ret = GetUserName(lpBuff, 25)
> username = Left(lpBuff, InStr(lpBuff, Chr(0)) - 1)
>
> Get_User_Name = username
>
> End Function
>
>
> compile the dll and them from an asp page call it
> using something like the
> below line.
>
> i have other functions compiled in this dll so my
> naming is a little vague
> but i named the
> dll OFACwordrpt and my dll class is named
> wordRPTfunctions.
>
> hope this works
>
> set Obj
> createobject("OFACwordRpt.wordRPTfunctions")
> vEvar = Obj.getusername()
> 'vEvar = Obj.getEnvironVariables()
>
> response.write vEvar
> response.end
>
>
>
>
>
>
>
>
>
>
> -----Original Message-----
> From: nimesh vijayan [mailto:vnimesh@y...]
> Sent: Thursday, January 17, 2002 9:53 PM
> To: ASP Web HowTo
> Subject: [asp_web_howto] RE: Intranet Login
>
>
> Hi Aaron,
>
> Isn't this what we call single sign-on.??
> (correct me if i'm wrong). I never thought it is
> possible to get the workstation username.. We also
> use
> Novell's log-in (work station), and hence, users
> hate
> multiple log-in. I would really appreciate, if you
> guide me to get the VB DLL that u used...
> Thanx All.
> Bala.
>
> --- Aaron.Mintz@d... wrote:
> > don't know if this has already been answered. but
> i
> > achieved this by
> > creating a VB dll that accesses the UserName
> environ
> > variable from the
> > client machine.
> >
> > in order to make this work though you must go into
> > the iis
> >
> > manager and disable the [directory security]
> "allow
> > anonymous access" option
> >
> > of course this is assuming you are using iis.
> >
> >
> >
> > -----Original Message-----
> > From: O'Hara, Elliott M
> > [mailto:EMOHARA@k...]
> > Sent: Thursday, January 17, 2002 11:22 AM
> > To: ASP Web HowTo
> > Subject: [asp_web_howto] RE: Intranet Login
> >
> >
> > Client Side
> > <script language="javascript">
> > var WshNetwork
> > WScript.CreateObject("WScript.Network");
> > document.write(WshNetwork.UserName)
> > </script>
> >
> > Server Side
> >
> > Response.Write
> Request.ServerVariables("AUTH_USER")
> >
> >
> > I THINK that will work on Novell too...
> > Tell them to use Microsoft :~)
> >
> > -----Original Message-----
> > From: clover c [mailto:callisto137@h...]
> > Sent: Thursday, January 17, 2002 11:18 AM
> > To: ASP Web HowTo
> > Subject: [asp_web_howto] Intranet Login
> >
> >
> > Hello everyone,
> >
> > Was wondering if anyone has any suggestions for
> > obtaining the work station
> > login of an intranet user and then allowing the
> user
> > to access the site when
> >
> > they log on to their work station as opposed to
> > having to type a username
> > and password everytime they open/close a browser
> > session. Is it possible to
> > obtain the workstation logon details using
> > vb/javascript at all?? the
> > company runs novell netware (dunno if this makes a
> > blind bit of difference!)
> >
> > Please help!!
> > Thanks in advance,
> > Clover
> >
> >
> >
>
_________________________________________________________________
> > Chat with friends online, try MSN Messenger:
> > http://messenger.msn.com
> >
> >
> > $subst('Email.Unsub').
> >
> > $subst('Email.Unsub').
> >
> $subst('Email.Unsub').
>
>
> __________________________________________________
> Do You Yahoo!?
> Send FREE video emails in Yahoo! Mail!
> http://promo.yahoo.com/videomail/
>
>
=== message truncated ===
__________________________________________________
Do You Yahoo!?
Send FREE video emails in Yahoo! Mail!
http://promo.yahoo.com/videomail/
$subst('Email.Unsub').
Message #21 by nimesh vijayan <vnimesh@y...> on Mon, 21 Jan 2002 17:48:48 -0800 (PST)
|
|
Hi Aaron..
Its wonderful and working.. It seems that the
single-sign on issue is achieved. If it is this much
simple, why people talk something big about the
single-sign on concept. Is there any issues or
problems using this method to detect the workstation
id..?? Thanks a lot.
Regards.
--- Aaron.Mintz@d... wrote:
> go to the iis manager and make sure the 'anonymous
> access' option on the
> directory security tab is unchecked. That should
> fix your problem
>
> -----Original Message-----
> From: nimesh vijayan [mailto:vnimesh@y...]
> Sent: Saturday, January 19, 2002 12:56 AM
> To: ASP Web HowTo
> Subject: [asp_web_howto] RE: Intranet Login
>
>
> Hi Aaron..
>
> I have tried this. It returns
> 'IUSR_INTRA_DEV01'. INTRA_DEV01 is the server name.
> I
> tried to call the asp page from different
> workstation
> and i get this is as result. It doent return back
> the
> workstation Novellid.. PLs help..
>
> Thanx for yr help.
>
> --- Aaron.Mintz@d... wrote:
> > we too have the same problem. Users log into
> Novell
> > and don't want to login
> > again.
> >
> > here is the dll code, and remember you must turn
> off
> > the anonymous access
> > option in the iis manager or this code will only
> > return a generic internet
> > user id.
> >
> > hope it works.
> >
> > open a vb activex dll project
> >
> > in a class module enter the below code.
> >
> > Public Function GetUserName()
> >
> > GetUserName = Get_User_Name
> >
> > End Function
> >
> >
> > in a module enter the below code.
> >
> > Option Explicit
> >
> > Declare Function GetUserName Lib "advapi32.dll"
> > Alias "GetUserNameA" _
> > (ByVal lpBuffer As String, nSize As Long) As Long
> >
> >
> > Function Get_User_Name()
> >
> > Dim lpBuff As String * 25
> > Dim ret As Long, username As String
> >
> > ret = GetUserName(lpBuff, 25)
> > username = Left(lpBuff, InStr(lpBuff, Chr(0)) - 1)
> >
> > Get_User_Name = username
> >
> > End Function
> >
> >
> > compile the dll and them from an asp page call it
> > using something like the
> > below line.
> >
> > i have other functions compiled in this dll so my
> > naming is a little vague
> > but i named the
> > dll OFACwordrpt and my dll class is named
> > wordRPTfunctions.
> >
> > hope this works
> >
> > set Obj
> > createobject("OFACwordRpt.wordRPTfunctions")
> > vEvar = Obj.getusername()
> > 'vEvar = Obj.getEnvironVariables()
> >
> > response.write vEvar
> > response.end
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> > -----Original Message-----
> > From: nimesh vijayan [mailto:vnimesh@y...]
> > Sent: Thursday, January 17, 2002 9:53 PM
> > To: ASP Web HowTo
> > Subject: [asp_web_howto] RE: Intranet Login
> >
> >
> > Hi Aaron,
> >
> > Isn't this what we call single
> sign-on.??
> > (correct me if i'm wrong). I never thought it is
> > possible to get the workstation username.. We also
> > use
> > Novell's log-in (work station), and hence, users
> > hate
> > multiple log-in. I would really appreciate, if you
> > guide me to get the VB DLL that u used...
> > Thanx All.
> > Bala.
> >
> > --- Aaron.Mintz@d... wrote:
> > > don't know if this has already been answered.
> but
> > i
> > > achieved this by
> > > creating a VB dll that accesses the UserName
> > environ
> > > variable from the
> > > client machine.
> > >
> > > in order to make this work though you must go
> into
> > > the iis
> > >
> > > manager and disable the [directory security]
> > "allow
> > > anonymous access" option
> > >
> > > of course this is assuming you are using iis.
> > >
> > >
> > >
> > > -----Original Message-----
> > > From: O'Hara, Elliott M
> > > [mailto:EMOHARA@k...]
> > > Sent: Thursday, January 17, 2002 11:22 AM
> > > To: ASP Web HowTo
> > > Subject: [asp_web_howto] RE: Intranet Login
> > >
> > >
> > > Client Side
> > > <script language="javascript">
> > > var WshNetwork
> > > WScript.CreateObject("WScript.Network");
> > > document.write(WshNetwork.UserName)
> > > </script>
> > >
> > > Server Side
> > >
> > > Response.Write
> > Request.ServerVariables("AUTH_USER")
> > >
> > >
> > > I THINK that will work on Novell too...
> > > Tell them to use Microsoft :~)
> > >
> > > -----Original Message-----
> > > From: clover c [mailto:callisto137@h...]
> > > Sent: Thursday, January 17, 2002 11:18 AM
> > > To: ASP Web HowTo
> > > Subject: [asp_web_howto] Intranet Login
> > >
> > >
> > > Hello everyone,
> > >
> > > Was wondering if anyone has any suggestions for
> > > obtaining the work station
> > > login of an intranet user and then allowing the
> > user
> > > to access the site when
> > >
> > > they log on to their work station as opposed to
> > > having to type a username
> > > and password everytime they open/close a browser
> > > session. Is it possible to
> > > obtain the workstation logon details using
> > > vb/javascript at all?? the
> > > company runs novell netware (dunno if this makes
> a
> > > blind bit of difference!)
> > >
> > > Please help!!
> > > Thanks in advance,
> > > Clover
> > >
> > >
> > >
> >
>
=== message truncated ===
__________________________________________________
Do You Yahoo!?
Send FREE video emails in Yahoo! Mail!
http://promo.yahoo.com/videomail/
Message #22 by nimesh vijayan <vnimesh@y...> on Mon, 21 Jan 2002 17:51:04 -0800 (PST)
|
|
HI ..
Tahnks a lot.. it works..
Regards.
--- Craig Flannigan <ckf@k...> wrote:
> Have you remembered to disable anonymous access?
>
> "remember you must turn off the anonymous access
> option in the iis manager or this code will only
> return a generic internet
> user id."
>
> Your !USR_MachineName" is the generic one.
>
>
>
> -----Original Message-----
> From: nimesh vijayan [mailto:vnimesh@y...]
> Sent: Saturday 19 January 2002 05:56
> To: ASP Web HowTo
> Subject: [asp_web_howto] RE: Intranet Login
>
>
> Hi Aaron..
>
> I have tried this. It returns
> 'IUSR_INTRA_DEV01'. INTRA_DEV01 is the server name.
> I
> tried to call the asp page from different
> workstation
> and i get this is as result. It doent return back
> the
> workstation Novellid.. PLs help..
>
> Thanx for yr help.
>
> --- Aaron.Mintz@d... wrote:
> > we too have the same problem. Users log into
> Novell
> > and don't want to login
> > again.
> >
> > here is the dll code, and remember you must turn
> off
> > the anonymous access
> > option in the iis manager or this code will only
> > return a generic internet
> > user id.
> >
> > hope it works.
> >
> > open a vb activex dll project
> >
> > in a class module enter the below code.
> >
> > Public Function GetUserName()
> >
> > GetUserName = Get_User_Name
> >
> > End Function
> >
> >
> > in a module enter the below code.
> >
> > Option Explicit
> >
> > Declare Function GetUserName Lib "advapi32.dll"
> > Alias "GetUserNameA" _
> > (ByVal lpBuffer As String, nSize As Long) As Long
> >
> >
> > Function Get_User_Name()
> >
> > Dim lpBuff As String * 25
> > Dim ret As Long, username As String
> >
> > ret = GetUserName(lpBuff, 25)
> > username = Left(lpBuff, InStr(lpBuff, Chr(0)) - 1)
> >
> > Get_User_Name = username
> >
> > End Function
> >
> >
> > compile the dll and them from an asp page call it
> > using something like the
> > below line.
> >
> > i have other functions compiled in this dll so my
> > naming is a little vague
> > but i named the
> > dll OFACwordrpt and my dll class is named
> > wordRPTfunctions.
> >
> > hope this works
> >
> > set Obj
> > createobject("OFACwordRpt.wordRPTfunctions")
> > vEvar = Obj.getusername()
> > 'vEvar = Obj.getEnvironVariables()
> >
> > response.write vEvar
> > response.end
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> > -----Original Message-----
> > From: nimesh vijayan [mailto:vnimesh@y...]
> > Sent: Thursday, January 17, 2002 9:53 PM
> > To: ASP Web HowTo
> > Subject: [asp_web_howto] RE: Intranet Login
> >
> >
> > Hi Aaron,
> >
> > Isn't this what we call single
> sign-on.??
> > (correct me if i'm wrong). I never thought it is
> > possible to get the workstation username.. We also
> > use
> > Novell's log-in (work station), and hence, users
> > hate
> > multiple log-in. I would really appreciate, if you
> > guide me to get the VB DLL that u used...
> > Thanx All.
> > Bala.
> >
> > --- Aaron.Mintz@d... wrote:
> > > don't know if this has already been answered.
> but
> > i
> > > achieved this by
> > > creating a VB dll that accesses the UserName
> > environ
> > > variable from the
> > > client machine.
> > >
> > > in order to make this work though you must go
> into
> > > the iis
> > >
> > > manager and disable the [directory security]
> > "allow
> > > anonymous access" option
> > >
> > > of course this is assuming you are using iis.
> > >
> > >
> > >
> > > -----Original Message-----
> > > From: O'Hara, Elliott M
> > > [mailto:EMOHARA@k...]
> > > Sent: Thursday, January 17, 2002 11:22 AM
> > > To: ASP Web HowTo
> > > Subject: [asp_web_howto] RE: Intranet Login
> > >
> > >
> > > Client Side
> > > <script language="javascript">
> > > var WshNetwork
> > > WScript.CreateObject("WScript.Network");
> > > document.write(WshNetwork.UserName)
> > > </script>
> > >
> > > Server Side
> > >
> > > Response.Write
> > Request.ServerVariables("AUTH_USER")
> > >
> > >
> > > I THINK that will work on Novell too...
> > > Tell them to use Microsoft :~)
> > >
> > > -----Original Message-----
> > > From: clover c [mailto:callisto137@h...]
> > > Sent: Thursday, January 17, 2002 11:18 AM
> > > To: ASP Web HowTo
> > > Subject: [asp_web_howto] Intranet Login
> > >
> > >
> > > Hello everyone,
> > >
> > > Was wondering if anyone has any suggestions for
> > > obtaining the work station
> > > login of an intranet user and then allowing the
> > user
> > > to access the site when
> > >
> > > they log on to their work station as opposed to
> > > having to type a username
> > > and password everytime they open/close a browser
> > > session. Is it possible to
> > > obtain the workstation logon details using
> > > vb/javascript at all?? the
> > > company runs novell netware (dunno if this makes
> a
> > > blind bit of difference!)
> > >
> > > Please help!!
>
=== message truncated ===
__________________________________________________
Do You Yahoo!?
Send FREE video emails in Yahoo! Mail!
http://promo.yahoo.com/videomail/
|
|
 |