jboss7-用户管理

1、在bin下找到add-user.sh和add-user.bat这分别对应windows和linux系统下的文件

2、用户安全作用域默认有两个,作用域理解为用户组就可以了:ManagementRealm和ApplicationRealm,运行上面提到的脚本会提示你使用那个作用域

3、jboss默认是启动standalone,所以在standalone.xml也能找到如上的两个作用域,如下

<security-realms>
            <security-realm name="ManagementRealm">
                <server-identities>
                    <ssl protocol="TLSv1">
                        <keystore keystore-password="online23" path="wildfly.keystore"/>
                    </ssl>
                </server-identities>
                <authentication>
                    <local default-user="$local" skip-group-loading="true"/>
                    <properties path="mgmt-users.properties" relative-to="jboss.server.config.dir"/>
                </authentication>
                <authorization map-groups-to-roles="false">
                    <properties path="mgmt-groups.properties" relative-to="jboss.server.config.dir"/>
                </authorization>
            </security-realm>
            <security-realm name="ApplicationRealm">
                <authentication>
                    <local allowed-users="*" default-user="$local" skip-group-loading="true"/>
                    <properties path="application-users.properties" relative-to="jboss.server.config.dir"/>
                </authentication>
                <authorization>
                    <properties path="application-roles.properties" relative-to="jboss.server.config.dir"/>
                </authorization>
            </security-realm>
        </security-realms>
4、观察上面配置我们能看到文件
mgmt-users.properties和mgmt-users.properties
如果我们已经添加了用户,会发现这文件里面有我们添加的用户组和用户姓名,但是密码是加密的

5、修改,修改怎么办呢?同样运行如上脚本,就会找到修改办法

6、另外,其实有多种方案可以管理用户,也可以直接修改standalone.xml文件,或者启动后登陆也可以管理用户,非推荐方法,自己研究下吧

转载于:https://my.oschina.net/fir01/blog/530268

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值