公司使用的软件开发和协作工具是Atlassian系列软件,因此统一登录(SSO)使用crowd。

crowd 配置

具体操作细节见我之前写的 Atlassian 系列软件安装

添加 nexus 用户组

此处的 nx-admin 组为 nexus 默认的管理组。

添加 nexus 应用

注意:“groups” 和 “Remote addresses” 的设置。

安装 nexus3-crowd-plugin 插件

Available in Nexus Repository Manager Pro only

官方 Nexus Pro 直接集成了 Atlassian Crowd 支持,但社区版不支持,需要自己集成开源插件。

插件地址:

插件安装问题

在插件部署过程中,我碰见如下问题:

2020-04-05 16:33:00,792+0800 ERROR [FelixDispatchQueue] *SYSTEM nexus3-crowd-plugin - FrameworkEvent ERROR - nexus3-crowd-plugin
org.o: Unable to resolve nexus3-crowd-plugin [49](R 49.0): missing requirement [nexus3-crowd-plugin [49](R 49.0)] o; (&(o=org.sonatype.nexus.security.authz)(version>=3.20.0)) Unresolved requirements: [[nexus3-crowd-plugin [49](R 49.0)] o; (&(o=org.sonatype.nexus.security.authz)(version>=3.20.0))]
at org.a(Felix.java:4132)
at org.a(Felix.java:2117)
at org.a(Felix.java:1371)
at org.a(FrameworkStartLevelImpl.java:308)
at java.lang.T(Thread.java:748)

解决方法

# 下载插件代码到本地
git clone .git$

# 修改 内容
$ vi
......
<parent>
<groupId>org.;/groupId>
<artifactId>nexus-plugins</artifactId>
<!-- 修改 parent 的版本与 nexus3 的版本一致 -->
<version>3.12.1-01</version>
</parent>
......
<dependency>
<groupId>org.;/groupId>
<artifactId>nexus-plugin-api</artifactId>
<!-- 注释掉下面这行,把依赖包打入到插件 jar 中 -->
<!--<scope>provided</scope>-->
</dependency>
......
# 重新编译打包
$ mvn clean package

前提条件

JDK 8 is installed

Sonatype Nexus OSS 3.x is installed

下载 nexus3-crowd-plugin 插件

$ cd /home/nexus/nexus3
$ wget /releases/download/nexus3-crowd-plugin-3.4.2/nexus3-crowd-plugin-3.4.2.jar

将绑定添加到

$ echo "reference:file:nexus3-crowd-plugin-3.4.2.jar = 200" >> /home/nexus/nexus3/nexus-3.12.1-01/etc/karaf/

配置 crowd.properties

$ echo "# 配置 crowd 的地址
crowd.server.url=http://localhost:8095/crowd/
# 配置 crowd 里该 application 的名称
a
# 配置 crowd 里该 Application 的密码
a
cac
# optional:

; > /home/nexus/nexus3

# 重启验证
$ sh /home/nexus/nexus3 restart

nexus 设置

激活插件

使用 crowd 用户登录

查看 crowd 的用户信息。

查看 crowd 的用户详细:

1.《【nexusmodmanager】专题Nexus3 集成 crowd 插件》援引自互联网,旨在传递更多网络信息知识,仅代表作者本人观点,与本网站无关,侵删请联系页脚下方联系方式。

2.《【nexusmodmanager】专题Nexus3 集成 crowd 插件》仅供读者参考,本网站未对该内容进行证实,对其原创性、真实性、完整性、及时性不作任何保证。

3.文章转载时请保留本站内容来源地址,https://www.cxvn.com/gl/djyxgl/208706.html