Nexus Repository 配置LDAP(Active Directory)

Operating environment

  • Nexus Version: 3.16.1-02
  • LDAP types: Active Directory

Configuration Steps

Login nexus manage accounts, enter the configuration interface

Click Security >> LDAP enter the page

Click "Create Connection" create an LDAP connection

name:此连接的名称,可自定义
LDAP server address
    Protocol:是否启用SSL,是选用 LDAPS,否则选用 LDAP
    Hostname:LDAP的服务器地址
    Port:LDAP端口号
Search base:基本DN,即一般从域的根节点开始搜索,如 dc=test,dc=com
Authentication method:加密方式
Username or DN:输入用于获取LDAP用户的账户,建议使用只读账户
    用户名:格式为 用户名@域名,如 [email protected]
    password:输入用户的密码
    Connection rules:连接规则
        第一个选框:超时时间,单位 秒
        第二个选框:多少秒后重试
        第三个选框:失败尝试次数

Fill in the server information is complete, click Verify connection test connection

Upper right corner of the pop-up test results, such as the connection test fails, check the configuration information is wrong

After the test is successful, click next to enter LDAP user and group configuration

  • Scenario 1: All users under the Users root, under the Users directory there is no other user node directory
    • Select the Configuration template to Active Directory, you can configure the default for all
  • Scenario 2: All users in the Users directory, but in the presence of other users of the directory Users
    • Select the Configuration template for Active Directory
    • Check the check box under the User subtree
    • Other default configuration information
  • Scenario 3: Other cases
    • Select the Configuration template for Active Directory
    • Remove the Base DN defaults
    • Check the check box under the User subtree
    • Enter User fitter, is: (& (objectCategory = Person) (sAMAccountName = *))

Click Verify user mapping test to obtain a list of users

Click Verify login user login test ldap


Click Save to save and exit the current user, use the LDAP user logs in, the configuration is complete.

Official configuration file: https://help.sonatype.com/repomanager3/security/ldap#app/

Guess you like

Origin www.cnblogs.com/nethrd/p/10949495.html