章工运维 章工运维
首页
  • linux
  • windows
  • 中间件
  • 监控
  • 网络
  • 存储
  • 安全
  • 防火墙
  • 数据库
  • 系统
  • docker
  • 运维工具
  • other
  • elk
  • K8S
  • ansible
  • Jenkins
  • GitLabCI_CD
  • 随笔
  • 面试
  • 工具
  • 收藏夹
  • Shell
  • python
  • golang
友链
  • 索引

    • 分类
    • 标签
    • 归档
    • 首页 (opens new window)
    • 关于我 (opens new window)
    • 图床 (opens new window)
    • 评论 (opens new window)
    • 导航栏 (opens new window)
周刊
GitHub (opens new window)

章工运维

业精于勤,荒于嬉
首页
  • linux
  • windows
  • 中间件
  • 监控
  • 网络
  • 存储
  • 安全
  • 防火墙
  • 数据库
  • 系统
  • docker
  • 运维工具
  • other
  • elk
  • K8S
  • ansible
  • Jenkins
  • GitLabCI_CD
  • 随笔
  • 面试
  • 工具
  • 收藏夹
  • Shell
  • python
  • golang
友链
  • 索引

    • 分类
    • 标签
    • 归档
    • 首页 (opens new window)
    • 关于我 (opens new window)
    • 图床 (opens new window)
    • 评论 (opens new window)
    • 导航栏 (opens new window)
周刊
GitHub (opens new window)
  • linux

  • windows

  • 中间件

  • 网络

  • 安全

  • 存储

  • 防火墙

  • 数据库

  • 系统

    • vmware

    • ftp

    • nexus

    • harbor

    • confluence&jira

    • loki

    • sonarqube

    • svn

    • other

    • openldap

      • openldap介绍和安装
      • go-ldap-admin平台安装
      • 集成zabbix,jenkins,gitlab,jumpserver,harbor,jira,confluence实战
        • openldap配置自助修改密码
      • influxdb

      • wordpress

      • kvm

      • argocd

      • jfrog

      • nextcloud

      • RustDesk

      • mail

      • ghost

    • docker

    • other

    • 监控

    • 运维
    • 系统
    • openldap
    章工运维
    2023-05-27
    目录

    集成zabbix,jenkins,gitlab,jumpserver,harbor,jira,confluence实战

    # 1.zabbix配置ldap

    如图所示

    2074c60001148c46.jpg

    注意事项,zabbix创建ldap用户,需要新建群组,创建用户选择ldap群组

    # 2.gitlab

    配置如下

    #openldap
    gitlab_rails['ldap_enabled'] = true
    ###! **remember to close this block with 'EOS' below**
      gitlab_rails['ldap_servers'] = YAML.load <<-'EOS'
        main: # 'main' is the GitLab 'provider ID' of this LDAP server
    # label: 'LDAP'
          host: '172.16.30.180'
          port: 389
          uid: 'uid'
          bind_dn: 'cn=admin,dc=1quant,dc=com'
          password: 'xxxxxx'
          encryption: 'plain' # "start_tls" or "simple_tls" or "plain"
    # verify_certificates: true
    # smartcard_auth: false
          active_directory: false
          allow_username_or_email_login: false
    # lowercase_usernames: false
    # block_auto_created_users: false
          base: 'ou=People,dc=1quant,dc=com'
          user_filter: ''
    # ## EE only
    # group_base: ''
    # admin_group: ''
    # sync_ssh_keys: false
    #
    # secondary: # 'secondary' is the GitLab 'provider ID' of second LDAP server
    # label: 'LDAP'
    # host: '_your_ldap_server'
    # port: 389
    # uid: 'sAMAccountName'
    # bind_dn: '_the_full_dn_of_the_user_you_will_bind_with'
    # password: '_the_password_of_the_bind_user'
    # encryption: 'plain' # "start_tls" or "simple_tls" or "plain"
    # verify_certificates: true
    # smartcard_auth: false
    # active_directory: true
    # allow_username_or_email_login: false
    # lowercase_usernames: false
    # block_auto_created_users: false
    # base: ''
    # user_filter: ''
    # ## EE only
    # group_base: ''
    # admin_group: ''
    # sync_ssh_keys: false
     EOS
    
    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
    42
    43
    44
    45
    46

    配置完成访问界面

    230cdbf3ea1e416d.jpg

    # 3.jenkins

    如下所示在ou组下创建jenkins组

    0cbc180f0877c32a.jpg

    jenkins配置如下

    37be48f5a87f0858.jpg

    df672f9b9f60dff6.jpg

    6f7036abe71a4a39.jpg

    # jumpserver

    配置如下

    4b129659950197f7.jpg

    导入的用户

    d974c2b8e7334482.jpg

    # harbor

    配置如下

    9a162682d0a7be7f.jpg

    注意事项:如果你的认证模式是灰色的,原因如下

    这是因为某种认证方式下一旦有了除admin/anonymous之外的用户存在。则不能修改认证方式了。
    要想修改就需要删除现有用户。而且必须是在数据库里删除用户。只在页面上删除用户,实际数据库里是把用户打了个删除标记,仍然不能修改认证方式。

    数据库中删除用户的方法:

    1. 进容器
      命令忽略
      2. 登库
    psql -U postgres -d registry
    
    1

    查用户

     select * from harbor_user;
    
    1

    删用户

    delete  from harbor_user where username='haha#4';  
    
    1

    # jira

    配置如下

    ca943b9dea62d232.jpg

    480ca226e7e6773a.jpg

    # confluence

    配置如下

    dd094e1c63b0cb6f.jpg

    288a3137725dcf68.jpg

    我的博客即将同步至 OSCHINA 社区,这是我的 OSCHINA ID:运维章工,邀请大家一同入驻:https://www.oschina.net/sharing-plan/apply

    微信 支付宝
    上次更新: 2023/05/29, 22:25:17

    ← go-ldap-admin平台安装 openldap配置自助修改密码→

    最近更新
    01
    shell脚本模块集合
    05-13
    02
    生活小技巧(认知版)
    04-29
    03
    生活小技巧(防骗版)
    04-29
    更多文章>
    Theme by Vdoing | Copyright © 2019-2025 | 点击查看十年之约 | 鄂ICP备2024072800号
    • 跟随系统
    • 浅色模式
    • 深色模式
    • 阅读模式