1 Reply Latest reply on Mar 21, 2015 8:12 AM by jaysensharma

    How to generate password hash  for mgt-users.properties

    bk_lau

      Hi :

      Usually, WildFly doc advocates using add-user.bat(sh) to create user/password for WildFly managment administration.

      Example : $: add-user.sh admin111 xxxxxxxx

      This  process creates and stores passwords as hashes in file mgt-users.properties like so:

       

      admin=46aa29a05516b89f799aef8e3e9cb3ae

      admin1=c8049c1fdddc0d1b7b36c3f5c6eaec8d

      admin111=a11b5f35cb2b6ae799916ef54062b2b1

       

      Q: Is there any way to  add the user programmatically?( A sample code would be nice)

      If not, how do I hash a password  akin to those used in add-user.bat(sh)??

       

      Thanks,

       

      bk