[jboss-jira] [JBoss JIRA] (AS7-5060) add-user.sh/add-user.bat should provide a scriptable mode

Brad Maxwell (JIRA) jira-events at lists.jboss.org
Fri Jun 22 11:31:12 EDT 2012


     [ https://issues.jboss.org/browse/AS7-5060?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Brad Maxwell updated AS7-5060:
------------------------------

        Summary: add-user.sh/add-user.bat should provide a scriptable mode  (was: CLONE - add-user.sh/add-user.bat should provide a scriptable mode)
    Description: 
Currently the add-user.sh / add-user.bat script fails with the exception below if it tries to redirect the output.

./add-user.sh --silent=true user password > log

Exception in thread "main" java.lang.IllegalStateException: JBAS015232: No java.io.Console available to interact with user.
	at org.jboss.as.domain.management.security.AddPropertiesUser.<init>(AddPropertiesUser.java:108)
	at org.jboss.as.domain.management.security.AddPropertiesUser.<init>(AddPropertiesUser.java:119)
	at org.jboss.as.domain.management.security.AddPropertiesUser.main(AddPropertiesUser.java:167)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:597)
	at org.jboss.modules.Module.run(Module.java:270)
	at org.jboss.modules.Main.main(Main.java:294)

  was:
Currently the vault.sh / vault.bat script can only be run in interactive mode.
We tried scripting vault.sh by redirecting stdin, but that fails due to it using the Java Console class.

This RFE is to add a non-interactive mode, e.g. be able to invoke the vault script with all parameters passed on the command line.

We realise this would expose passwords in plain text, but it is the intention to be able to run this on a private machine and copy the result to the actual deployment box.



    
> add-user.sh/add-user.bat should provide a scriptable mode
> ---------------------------------------------------------
>
>                 Key: AS7-5060
>                 URL: https://issues.jboss.org/browse/AS7-5060
>             Project: Application Server 7
>          Issue Type: Feature Request
>          Components: Security
>    Affects Versions: 7.1.1.Final
>            Reporter: Brad Maxwell
>            Assignee: Anil Saldhana
>
> Currently the add-user.sh / add-user.bat script fails with the exception below if it tries to redirect the output.
> ./add-user.sh --silent=true user password > log
> Exception in thread "main" java.lang.IllegalStateException: JBAS015232: No java.io.Console available to interact with user.
> 	at org.jboss.as.domain.management.security.AddPropertiesUser.<init>(AddPropertiesUser.java:108)
> 	at org.jboss.as.domain.management.security.AddPropertiesUser.<init>(AddPropertiesUser.java:119)
> 	at org.jboss.as.domain.management.security.AddPropertiesUser.main(AddPropertiesUser.java:167)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> 	at java.lang.reflect.Method.invoke(Method.java:597)
> 	at org.jboss.modules.Module.run(Module.java:270)
> 	at org.jboss.modules.Main.main(Main.java:294)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jboss-jira mailing list