Article View: borland.public.jbuilder.java.api
Article #3154Re: Get the userID from WindowsNT (and Novell)
From: Clint Brewer
Date: Tue, 07 Apr 1998 00:00
Date: Tue, 07 Apr 1998 00:00
27 lines
1515 bytes
1515 bytes
Lior Shaki wrote: > > 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 > Hello Lior, I believe the only way you are going to be able to do this is using the java native methods interface. For a basic example of this, check out the java in 21 days book, or if you go to www.javasoft.com, I'm sure there's an example using native methods somewhere. Hope this helps, Clint Brewer
Technical Details
Message-ID:
<352AC8FB.6467@borland.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<6g3fh0$ddq1@forums.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1089d0,e66eb951f7bee4bb X-Google-Attributes: gid1089d0,public From: Clint Brewer <supportinfo@borland.com> Subject: Re: Get the userID from WindowsNT (and Novell) Date: 1998/04/07 Message-ID: <352AC8FB.6467@borland.com> X-Deja-AN: 341888123 Content-Transfer-Encoding: 7bit References: <6g3fh0$ddq1@forums.borland.com> Content-Type: text/plain; charset=us-ascii Organization: Borland International Mime-Version: 1.0 Newsgroups: borland.public.jbuilder.java.api