0

How can I get windows account in ZK?

asked 2010-12-02 19:12:28 +0800

leoyc gravatar image leoyc
163 3

updated 2010-12-02 20:07:41 +0800

Use Jcifs,How can I get windows account in ZK?

---------------
this java code can return windows account when it run client:
System.getProperty("user.name");

in ZK,How can I run Java code on client?

delete flag offensive retag edit

2 Replies

Sort by ยป oldest newest

answered 2010-12-02 20:42:17 +0800

leoyc gravatar image leoyc
163 3

use Jcifs:How can I call "request.getRemoteUser()" in zk?

link publish delete flag offensive edit

answered 2010-12-03 07:37:43 +0800

caclark gravatar image caclark
1753 2 5
http://clarktrips.intltwi...

Use Jcifs,How can I get windows account in ZK?

When you run a System command on your server, it's on your server, not the client. The server has no clue what's running on the client. It could get be Mac OS x, Linux, Window, OS/2, or something else you have no control of. I don't see any logical tie between an HTTP request that's being processed by ZK and a Java based CIFS connection. Perhaps if jCIFS has an API to check for existing network level login, you can call that from a ZK composer/controller.

use Jcifs:How can I call "request.getRemoteUser()" in zk?

http://www.zkoss.org/javadoc/latest/zk/, look for Executiions#getCurrent()

link publish delete flag offensive edit
Your reply
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow

RSS

Stats

Asked: 2010-12-02 19:12:28 +0800

Seen: 524 times

Last updated: Dec 03 '10

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More