首页 > 其他分享 >openldap

openldap

时间:2024-01-30 15:57:18浏览次数:22  
标签:compose html cat openldap https docker

https://self-service-password.readthedocs.io/en/latest/installation.html#docker
https://www.cnblogs.com/keitsi/p/16618565.html

1. compose

cat > ssp.conf.php << EOF
<?php // My SSP configuration
\$keyphrase = "mysecret";
\$debug = true;
?>
EOF

# cat > docker-compose.yaml << EOF
version: '3.8'
services:
  openldap-01:
    image: bitnami/openldap:2.6.6
    container_name: openldap-01
    volumes:
      - openldap-data:/bitnami/openldap
    ports:
      - 1389:1389
    networks:
      openldap-net:
        ipv4_address: 172.18.14.11
    environment:
      - LDAP_ADMIN_USERNAME=admin
      - LDAP_ADMIN_PASSWORD=admin
      - LDAP_CONFIG_ADMIN_ENABLED=yes
      - LDAP_CONFIG_ADMIN_USERNAME=admin
      - LDAP_CONFIG_ADMIN_PASSWORD=admin
      - LDAP_ALLOW_ANON_BINDING=no
      - LDAP_ADMIN_DN=cn=admin,dc=example,dc=com
      - LDAP_ENABLE_SYNCPROV=true

  ldap-user-manager:
    image: wheelybird/ldap-user-manager:v1.11
    container_name: ldap-user-manager
    ports:
      - 29060:80
      - 29070:443
    networks:
      openldap-net:
        ipv4_address: 172.18.14.13
    environment:
      - LDAP_URI=ldap://openldap-01
      - LDAP_BASE_DN=dc=example,dc=com
      - LDAP_ADMIN_BIND_DN=cn=admin,dc=example,dc=com
      - LDAP_ADMIN_BIND_PWD=admin
      - LDAP_REQUIRE_STARTTLS=true
      - LDAP_IGNORE_CERT_ERRORS=true

  self-service-password:
    image: ltbproject/self-service-password:1.5
    container_name: self-service-password
    ports:
      - 29090:80
    volumes:
      - $PWD/ssp.conf.php:/var/www/conf/config.inc.local.php
    networks:
      openldap-net:
        ipv4_address: 172.18.14.14

volumes:
  openldap-data:
    name: openldap-data

networks:
  openldap-net:
    name: openldap-net
    driver: bridge
    ipam:
      driver: default
      config:
        - subnet: 172.18.14.0/24
          gateway: 172.18.14.1
EOF

标签:compose,html,cat,openldap,https,docker
From: https://www.cnblogs.com/liujitao79/p/17997281

相关文章

  • EMR-hive集成openldap
     LDAP认证:https://help.aliyun.com/zh/emr/emr-on-ecs/user-guide/use-ldap-authentication?spm=a2c4g.11186623.0.i4OpenLDAP试用说明参考:https://help.aliyun.com/zh/emr/emr-on-ecs/user-guide/use-openldap/?spm=a2c4g.11186623.0.i2......
  • OpenLDAP:使用Self Service Password管理用户密码
    安装dockeryum-yinstalldocker拉取镜像dockerpullgrams/ltb-self-service-password编辑配置文件<?php#==============================================================================#LTBSelfServicePassword##Copyright(C)2009ClementOUDOT#Co......
  • centos7 yum安装freeradius并配置到openldap进行简单认证
    1.yum安装freeradiusyum-yinstallfreeradiusfreeradius-utilsfreeradius-ldapvim2.编辑vim /etc/raddb/mods-available/ldap根据实际情况修改dc的值[root@localhost~]#cat/etc/raddb/mods-available/ldap|grep-v"#"|grep-v"^$"ldap{serv......
  • centos7 环境下yum安装openldap
    1.安装相关openldap的软件yum-yinstallopenldapopenldap-serversopenldap-clientsopenldap-develcompat-openldap2.openldap相关的文件配置/etc/openldap/slapd.conf:OpenLDAP的主配置文件,记录根域信息,管理员名称,密码,日志,权限等/etc/openldap/slapd.d/:这下面是/etc/o......
  • 部署openldap服务并配置jumpsever、jira、mindoc、gitlab、jenkins集成ldap认证
    背景公司各种信息化系统越来越多,需要记住的用户账号也越来越多,人员入职离职就要分别在不同的各种系统上进行添加和删除比较繁锁,急需要一个可以统一认证的服务,于是就开始研究ldap,ldap中openldap是开源的方便使用,于是花了大概2个月时间才把标题上面的这几个服务全部调通,以下记录配置......
  • Windows 下安装配置openldap
    1、软件下载JXplorer下载地址(Windows):http://prdownloads.sourceforge.net/jxplorer/JXv3.2_install_windows.exe?download下载后,双击jxplorer.exe安装。需要安装JDK1.4.0或更高版本。JXplorer下载地址(Linux):http://prdownloads.sourceforge.net/jxplorer/JXv3.2_install......
  • openLDAP之ACL
    accesstoattrs=userPassword    bydn.subtree="ou=admingroup"read    byselfwrite    byanonymousauth    by*noneaccesstodn.subtree="cn=org"    bydn.subtree="cn=org"read    bydn.subtree="......
  • OpenLDAP 自助修改密码系统
    一、创建docker-compose文件root@xx:~#mkdirself-service-passwordroot@xx:~#cdself-service-passwordroot@xx:~/self-service-password#vimdocker-compose.ymlversion:'2'services:ssp-app:image:tiredofit/self-service-password:latest#建议修改为指定......
  • 搭建openldap与phpldapadmin
    现在很多ldap文档不太适合centos7下安装使用ldap,于是自己搓了一篇作为留底LDAP基础概念:在开始部署前,要了解一些LDAP知识点:条目entry区别名/唯一标识名DistinguishedName/DN属性attributeLDAP的条目(entry)是具有区别名(DistinguishedNamed/DN唯一标识名)的属性(attribute)。DN......
  • docker安装openldap
    项目地址https://github.com/osixia/docker-openldap服务器安装获取相关镜像dockerpullosixia/openldapdockerpullosixia/phpldapadmin部署dockerrun-d-p389:389-p636:636-v/usr/local/ldap:/usr/local/ldap-v/data/openldap/ld......