-
1. Re: Quoting in jboss-cli
wdfink Jun 25, 2013 1:39 PM (in response to jeroenvds)Hmm, not sure whether the shell is robbing; could you try it in the interactive CLI?
-
2. Re: Quoting in jboss-cli
wdfink Jun 26, 2013 4:52 AM (in response to jeroenvds)Yes, the shell is interpreting.
You can use the interactive CLI with jboss-cli.sh -c and type the add command here directly.
Other option is to quote like this:
bin/jboss-cli.sh -c "/subsystem=security/security-domain=jdbcRealm3/authentication=classic:add(login-modules=[{\"code\"=>\"Database\",\"flag\"=>\"required\",\"module-options\"=>[(\"dsJndiName\"=>\"java:jboss/datasources/df\"),(\"principalsQuery\"=>\"SELECT PASSWORD FROM PERSON WHERE EMAIL = ?\"),(\"rolesQuery\"=>\"SELECT name, 'Roles' FROM GROUPS INNER JOIN PERSON_GROUPS pg ON (GROUPS.id = pg.groups_id) WHERE email = ?\"),(\"hashAlgorithm\"=>\"MD5\"),(\"hashEncoding\"=>\"hex\")]}]"
The command is surounded with " and all " must be quoted with \