본문 바로가기

반응형

분류 전체보기

C276x260 [LDAP] OpenLDAP 백업/복원 OpenLDAP 백업/복원 [백업] ldap config 백업(ldap 설정 백업) slapcat -n 0 -l ldap-config_$(date '+%Y%m%d').ldif $ slapcat -n 0 -l ldap-config_$(date '+%Y%m%d').ldif --output-- $ ll | grep ldap-config_20210615 -rw-r--r-- 1 root root 39596 Jun 15 21:19 ldap-config_20210615.ldif ldap data 백업(ldap 계정 백업) slapcat -n 2 -l ldap-data_$(date '+%Y%m%d').ldif $ slapcat -n 2 -l ldap-data_$(date '+%Y%m%d').ldif --output--.. 더보기
C276x260 CentOS 7에서 OpenLDAP 서버를 삭제하는 방법 CentOS 7에서 OpenLDAP 서버를 삭제하는 방법slapd 서비스 중지 및 설정 삭제sudo systemctl stop slapdsudo systemctl disable slapd<h4 data.. 더보기
C276x260 [LDAP] phpLDAPadmin 설치 및 연동 phpLDAPadmin 설치 및 openldap 연동 phpLDAPadmin 설치 $ yum install -y epel-release $ yum install -y phpldapadmin phpldapadmin.conf 편집 - Require all granted 추가 $ vim /etc/httpd/conf.d/phpldapadmin.conf # # Web-based tool for managing LDAP servers # Alias /phpldapadmin /usr/share/phpldapadmin/htdocs Alias /ldapadmin /usr/share/phpldapadmin/htdocs # Apache 2.4 Require local Require all granted # Apache 2... 더보기
C276x260 [LDAP] OpenLDAP 클라이언트 설치 OpenLDAP 클라이언트 설치OpenLDAP 클라이언트 패키지 설치$ yum install -y openldap-clients nss-pam-ldapd...Installing: nss-pam-ldapd openldap-clientsInstalling for dependencies: nscd$ systemctl restart nscdldapsearch 명령어 확인$ ldapsearch -h 192.168.56.101 -D cn=admin,dc=4wxyz,dc=com -b dc=4wxyz,dc=com -w ldappassword -s sub "(objectclass=*)"--output--# extended LDIF## LDAPv3# base with scope subtree# filter: (objec.. 더보기
C276x260 [LDAP] OpenLDAP 스크립트로 그룹 생성 및 사용자 계정 OpenLDAP 스크립트로 그룹 생성 및 사용자 계정 그룹 아이디 생성 $ cat ldapGroupAddv3.sh #!/bin/bash # GroupName, GidNumber echo "dn: cn=$1,ou=Groups,dc=4wxyz,dc=com changetype: add objectClass: top objectClass: posixGroup #objectClass: groupOfUniqueNames gidNumber: $2 cn: $1 #uniqueMember: #memberUid: 1501 description: groups" > .tmp/$1-group.ldif #DATA Insert docker exec openldap ldapmodify -a -x \ -D cn=admin,dc=4wxy.. 더보기
C276x260 [LDAP] OpenLDAP Password Policy overlay (ppolicy) OpenLDAP Password Policy overlay (ppolicy)정책 스키마 사용(OpenLDAP 비밀번호 정책)ls -l /etc/openldap/schema/ppolicy.ldif$ ldapadd -Y EXTERNAL -H ldapi:/// -f /etc/openldap/schema/ppolicy.ldif정책 오버레이 활성화 및 정책 오버레이 구성ppolicy-module.ldif 편집$ vim ppolicy-module.ldifdn: cn=module{0},cn=configcn: module{0}objectClass: olcModuleListolcModuleLoad: ppolicy.laolcModulePath: /usr/lib64/openldap#### ldapadd -Y EXTERNAL.. 더보기
C276x260 [LDAP] OpenLDAP 그룹 및 계정 생성 OpenLDAP 그룹 및 계정 생성정보 확인$ docker exec openldap ldapsearch -x -b dc=4wxyz,dc=com \-D "cn=admin,dc=4wxyz,dc=com" \-w ldappassword--output--# extended LDIF## LDAPv3# base with scope subtree# filter: (objectclass=*)# requesting: ALL## 4wxyz.comdn: dc=4wxyz,dc=comobjectClass: topobjectClass: dcObjectobjectClass: organizationo: 4wxyzdc: 4wxyz# search resultsearch: 2result: 0 Success# numResponses: 2#.. 더보기
C276x260 [LDAP] OpenLDAP 설치 및 구성 OpenLDAP 설치 및 구성OpenLDAP 설치yum install -y compat-openldap openldap openldap-servers openldap-clients$ yum install -y compat-openldap openldap openldap-servers openldap-clients openldap-servers-sql openldap-develOpenLDAP 데이터베이스 설정cp /usr/share/openldap-servers/DB_CONFIG.example /var/lib/ldap/DB_CONFIGchown ldap. /var/lib/ldap/DB_CONFIG$ cp /usr/share/openldap-servers/DB_CONFIG.example /var/lib/ld.. 더보기

728x90
반응형