[
https://issues.jboss.org/browse/AS7-5060?page=com.atlassian.jira.plugin.s...
]
Darran Lofthouse updated AS7-5060:
----------------------------------
Fix Version/s: Open To Community
Assignee: (was: Anil Saldhana)
Component/s: Domain Management
I have to say the expectations for this script seem to be increasing every time it is
touched.
The reason we supplied this utility was so that users after installing JBoss AS 7 had a
simple utility they could call to add users without needing to manually edit the
properties files or generate the hashes by hand.
For anyone looking for a more complex automated approach there is nothing to stop them
from manually generating the hashes and inserting them into the files themselves.
add-user.sh/add-user.bat non-interactive mode cannot redirect output
--------------------------------------------------------------------
Key: AS7-5060
URL:
https://issues.jboss.org/browse/AS7-5060
Project: Application Server 7
Issue Type: Bug
Components: Domain Management, Security
Affects Versions: 7.1.1.Final
Reporter: Brad Maxwell
Fix For: Open To Community
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