java - How to get an AdminClient Websphere object without using a username or password ? -


i use following code , works:

properties props = new properties(); props.setproperty(adminclient.connector_host, "localhost"); props.setproperty(adminclient.connector_port, port); //2809 props.setproperty(adminclient.connector_type, adminclient.connector_type_rmi); props.setproperty(adminclient.connector_security_enabled, "true"); props.setproperty(adminclient.username, user); props.setproperty(adminclient.password, password); adminclient = adminclientfactory.createadminclient(props); 

but i'd find way not use user name or password, have idea how achieve this? maybe j2c authentication alias of used here?

the alternative have (as far aware) configure soap.client.props username/password , run wsadmin script without connection/authentication information. in scenario, can leverage websphere's ability protect password within properties file. there 2 caveats scenario though.

  1. if utilize soap.client.props in websphere profile, running wsadmin leveraging username/password. security issue. though can work around using 'wsadmin.sh -p' option , specifying special props file @ execution time.
  2. websphere sucks @ protecting password out of box. applies xor, can reversed. unless you've written own custom encryption websphere.

Comments

Popular posts from this blog

c++ - Creating new partition disk winapi -

Android Prevent Bluetooth Pairing Dialog -

php - joomla get content in onBeforeCompileHead function -