base64 password for wildfly domain controller communication

Using wildfly in domain mode with additional host controller on different servers, it is required an user to authenticate the HC (host controller) to DC (domain controller). This is configured in the host.xml of HC server, the password is base64 encoded, see the example:

<management>
    <security-realms>
        <security-realm name="ManagementRealm">
            <server-identities>
                <secret value="YWRtaW4xMjNA"/>
            </server-identities>

<domain-controller>
    <remote host="${jboss.domain.master.address}" port="${jboss.domain.master.port:9999}" security-realm="ManagementRealm" username="admin2" />
</domain-controller>

If you do not know the base64 of a password, use the base64 linux command to convert the plain text password, the echo -n parameter, doesn’t print the carriage return char. See the example for a password: admin123@

$ echo -n "admin123@" | base64 
YWRtaW4xMjNA

This is useful in cases where the add-user.sh command is invoked in non interactive mode, as it doesn’t print the base64 password.

 

Categorias:

Atualizado em:

Deixe um comentário