how to retrieve localhost's credentials
hi, im tryin to list a server's shares and with the java library i found, it needs credentials that will be used for authentication. But im also trying to list the local computer's shares if the inputted server name or IP is not valid or reachable. And it still needs credentials even if i'm only listing local shares.
are there classes that can retrieve the current user's credentials?
You are talking about the OS or NOS login, correct? (i.e. Windows Login, NetWare login)You could try reading the registry - search Google for that.However, anything you get is likely to require JNI middleware.JNLP might help, try also searching Sun sites.
>I just need the username, password and domain of the current user.I would NOT like to see, say, an applet taking the current user's (that is, my) username and password.
> I would NOT like to see, say, an applet taking
> the current user's (that is, my) username and
> password.
I second the motion to quash the tactic. Or, should we all put our skills together and unleash an a wave of applets that do nothing but get the user name and password and ssn and while were at it why not their credit cards, car keys, and their shopping list.
Guess what shampoo Bill uses?