NT Authentication
RTS <[email protected]>
| Newsgroups | gmane.comp.windows.devel.jawin |
|---|---|
| Message-ID | <LISTSERV%[email protected]> |
I am using JAWIN to interface with a Windows COM component that retrieves
various information from an NT server, including event logs, registry
keys, etc. I generated the stubs, instantiated the objects and everything
works real well on the local server. Now I want to retrieve info from a
remote server. Obviously, I need to authenticate somehow on the remote NT
server to avoid a COMException. The COM object I am interfacing with
assumes I have already logged in to the remote server. My question:
Do any of the JAWIN classes allow me to pass credentials to a remote NT
server? The only way I can think of doing it would be to use the
java.lang.RunTime class to execute the NT command "net use" to
authenticate with the remote server prior to running my code. Something
like:
Runtime rt = Runtime.getRuntime() ;
Process process = rt.exec("net use [ServerName] [Password] [userName]");
...
I was hoping for more elegant solution. Any ideas?
Rick