🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.api
Article #3137

Get the userID from WindowsNT (and Novell)

#3137
From: Lior Shaki
Date: Fri, 03 Apr 1998 00:00
60 lines
2844 bytes
This is a multi-part message in MIME format.

------=_NextPart_000_0024_01BD5EFA.359257A0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Hi,
    I'm developing an Intranet. The server run Windows NT  4.0 with IIS. =
The clients use Windows 95  or Windows NT  workstations with Netscape.
    I would like to use the NT security in order to allow access to the =
system. In other words: use the same UserID and password that the user =
typed in order to log on, to authenticate him/her on the Web site. I =
assume I'll have to use the Win32 API (I think there a function in Win32 =
API called getUserName() that return the user ID ). The question is How =
do I call a Window API from Java and how to implement that within my =
environment ?

Lior


------=_NextPart_000_0024_01BD5EFA.359257A0
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD W3 HTML//EN">
<HTML>
<HEAD>

<META content=3Dtext/html;charset=3Diso-8859-1 =
http-equiv=3DContent-Type>
<META content=3D'"MSHTML 4.72.2106.6"' name=3DGENERATOR>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT color=3D#000000 size=3D2>Hi,</FONT></DIV>
<DIV><FONT color=3D#000000 size=3D2>&nbsp;&nbsp;&nbsp; I'm developing an =
Intranet.=20
The server run Windows NT&nbsp; 4.0 with IIS. The clients use Windows =
95&nbsp;=20
or Windows NT&nbsp; workstations with Netscape.</FONT></DIV>
<DIV><FONT color=3D#000000 size=3D2>&nbsp;&nbsp;&nbsp; I would like to =
use the NT=20
security in order to allow access to the system. In other words: use the =
same=20
UserID and password that the user typed in order to log on, to =
authenticate=20
him/her on the Web site. I assume I'll have to use the Win32 API (I =
think there=20
a function in Win32 API called getUserName() that return the user ID ). =
The=20
question is How do I call a Window API from Java and how to implement =
that=20
within my environment ?</FONT></DIV>
<DIV><FONT color=3D#000000 size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT color=3D#000000 size=3D2>Lior</FONT></DIV>
<DIV><FONT color=3D#000000 size=3D2></FONT>&nbsp;</DIV></BODY></HTML>

------=_NextPart_000_0024_01BD5EFA.359257A0--
Technical Details
Message-ID: <6g3fh0$ddq1@forums.borland.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 1089d0,e66eb951f7bee4bb,start
X-Google-Attributes: gid1089d0,public
From: "Lior Shaki" <lior@virtual-class.com>
Subject: Get the userID from WindowsNT (and Novell)
Date: 1998/04/03
Message-ID: <6g3fh0$ddq1@forums.borland.com>
X-Deja-AN: 340616801
Content-Type: multipart/alternative; boundary="----=_NextPart_000_0024_01BD5EFA.359257A0"
X-MimeOLE: Produced By Microsoft MimeOLE V4.72.2106.4
Organization: Another Netscape Collabra Server User
Mime-Version: 1.0
Newsgroups: borland.public.jbuilder.java.api