Zusammenfassung der Ressource
EAP - SECURITY DOMAIN TO USE A
DATABASE
- CONFIGURAÇÃO
- ADICIONAR DATA SOURCE XA OU NON-XA
- ADICIONAR UM SECURITY DOMAIN
- CRIAR UM METODO DE AUTENTICAÇÃO PARA O SECURITY DOMAIN
- How to Configure Identity Management - CHAPTER 4
- DOMAIN CONTROLLER
- /profile=full-ha/subsystem=security/security-domain=bksecurity:add()
- /profile=full-ha/subsystem=security/security-domain=bksecurity/authentication=classic:add()
- Adicionar módulo de securança
- /profile=full-ha/subsystem=security/security-domain=bksecurity/authentication=classic/login-module=database:add(
\
code=Database,
\
flag=required,
\
module-options=[
\
("dsJndiName"=>"java:jboss/datasources/bksecurity-ds"),
\
("principalsQuery"=>"select
password
from
users
where
username=?"),
\
("rolesQuery"=>"select
role,
'Roles'
from
roles
where
username=?"),
\
("hashAlgorithm"=>"SHA-256"),
\
("hashEncoding"=>"base64")
\
])
Anmerkungen:
- /profile=full-ha/subsystem=security/security-domain=bksecurity/authentication=classic/login-module=database:add( \
code=Database, \
flag=required, \
module-options=[ \
("dsJndiName"=>"java:jboss/datasources/bksecurity-ds"), \
("principalsQuery"=>"select password from users where username=?"), \
("rolesQuery"=>"select role, 'Roles' from roles where username=?"), \
("hashAlgorithm"=>"SHA-256"), \
("hashEncoding"=>"base64") \
])