-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdemo.cli
More file actions
41 lines (34 loc) · 2.68 KB
/
Copy pathdemo.cli
File metadata and controls
41 lines (34 loc) · 2.68 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
embed-server --server-config=standalone-full.xml
# don't remove LoginPermission from anonymous users - this is a new piece of configuration comming after WildFly 11 Alpha1
try
/subsystem=elytron/simple-permission-mapper=anonymous-permission-mapper:undefine-attribute(name=permission-mappings)
catch
echo You have probably WildFly 11 Alpha1 instance, which doesn't have anonymous-permission-mapper in it's configuration.
end-try
# enable Elytron across the server
/subsystem=undertow/application-security-domain=other:add(http-authentication-factory=application-http-authentication)
/subsystem=ejb3/application-security-domain=other:add(security-domain=ApplicationDomain)
/subsystem=batch-jberet:write-attribute(name=security-domain, value=ApplicationDomain)
/subsystem=messaging-activemq/server=default:undefine-attribute(name=security-domain)
/subsystem=messaging-activemq/server=default:write-attribute(name=elytron-domain, value=ApplicationDomain)
/subsystem=remoting/http-connector=http-remoting-connector:write-attribute(name=sasl-authentication-factory, value=application-sasl-authentication)
/subsystem=remoting/http-connector=http-remoting-connector:undefine-attribute(name=security-realm)
/core-service=management/access=identity:add(security-domain=ManagementDomain)
/core-service=management/management-interface=http-interface:write-attribute(name=http-upgrade,value={enabled=true, sasl-authentication-factory=management-sasl-authentication})
/core-service=management/management-interface=http-interface:write-attribute(name=http-authentication-factory,value=management-http-authentication)
/core-service=management/management-interface=http-interface:undefine-attribute(name=security-realm)
reload
/core-service=management/security-realm=ManagementRealm:remove
/core-service=management/security-realm=ApplicationRealm/authentication=local:remove
/core-service=management/security-realm=ApplicationRealm/authentication=properties:remove
/core-service=management/security-realm=ApplicationRealm/authorization=properties:remove
reload
# allow ANONYMOUS SASL mechanism
/subsystem=elytron/configurable-sasl-server-factory=configured:list-add(name=filters, value={"pattern-filter" => "ANONYMOUS"})
/subsystem=elytron/sasl-authentication-factory=application-sasl-authentication:list-add(name=mechanism-configurations, value={mechanism-name=ANONYMOUS})
# add "guest" role mapper to ApplicationDomain
/subsystem=elytron/constant-role-mapper=guest-role-mapper:add(roles=["guest"])
/subsystem=elytron/security-domain=ApplicationDomain:write-attribute(name=role-mapper, value=guest-role-mapper)
# add test queue
jms-queue add --queue-address=testQueue --entries=queue/test,java:jboss/exported/jms/queue/test
stop-embedded-server