Hello Andre-John, > The only issue I would have of using a JNI solution, is that it would > work on MS-Windows, but break everywhere else. Being a client, we need > to have the flexibility to work no matter the platform. I have a > collegue > who has PowerBook which he uses on our Windows network, so this is such > a user a JNI solution would lock out. > > [...snipped Adrian's note about a JNI implementation...] > > On 24/06/2004, at 2:31 AM, Steve Johnson wrote: > > > Hi All, > > > > Thanks again Adrian, very helpful. > > > > The NTCredentials API shows that the user, password, host, and domain > > can be set. Is it possible to use the logged-in users credentials? > > This way it would allow a user to be authenticated without > > reentering user/pw. > > > > Thanks for the help, > > Steve > >
Since the question about using the credentials of the OS user pops up every few months, could you (or rather your colleague) tell us whether that feature is available on the Mac platform at all? More precisely, does - IE for Mac - Safari - JDK with HttpUrlConnection use the logged-in user's credentials to automatically authenticate against an HTTP server with NTLM? If the latter is true, there still might be a platform-independent class somewhere in sun.* or com.sun.*. If not, we would at least know that it is a Windows-only or IE-only feature in the first place, which can not be expected to be provided by Java in a cross-platform manner. cheers and thanks, Roland