{{tag>[LDAP]}}
====== OpenLDAP (SLAPD) ======
===== Installation =====
++++ RHEL |
sudo dnf install openldap openldap-servers openldap-clients
sudo systemctl enable --now slapd
++++
++++ Rocky 8 |
sudo dnf install openldap openldap-clients
sudo dnf --enablerepo=powertools -y insall openldap-servers
sudo systemctl enable --now slapd
++++
===== USAGE =====
# 비밀번호 확인
ldapwhoami -vvv -h -p -D -x -w
===== SYNTAX =====
dn: olcDatabase={-1}frontend,cn=config
changetype: modify
add: olcAccess
olcAccess: {0}to dn.base="cn=subschema" by users read
olcAccess: {1}to dn.base="" by * read
dn: olcDatabase={-1}frontend,cn=config
changetype: modify
add: olcAccess
olcAccess: {0}to attrs=userPassword
by dn="cn=ldapreader,dc=genfic,dc=org" read
by self read
by anonymous auth
by * none
dn: olcDatabase={-1}frontend,cn=config
changetype: modify
delete: olcAccess
olcAccess: {1}
===== INDEX MENU =====
{{indexmenu>~#1}}