OpenLDAP: Difference between revisions

From Chorke Wiki
Jump to navigation Jump to search
No edit summary
Line 10: Line 10:
dpkg-reconfigure slapd
dpkg-reconfigure slapd
ls -lah /var/backups/
ls -lah /var/backups/
</source>
<source lang="bash" highlight="9,10" line>
cat > /etc/ldap/ldap.conf <<'EOF'
#
# LDAP Defaults
#
# See ldap.conf(5) for details
# This file should be world readable but not world writable.
BASE  dc=dev,dc=shahed,dc=biz
URI    ldap://localhost ldap://localhost:666
#SIZELIMIT      12
#TIMELIMIT      15
#DEREF          never
# TLS certificates (needed for GnuTLS)
TLS_CACERT      /etc/ssl/certs/ca-certificates.crt
EOF
</source>
</source>



Revision as of 20:36, 27 February 2021

apt update
apt list --upgradable
apt install slapd ldap-utils

Configure

ldapwhoami -H ldap:// -x
dpkg-reconfigure slapd
ls -lah /var/backups/
cat > /etc/ldap/ldap.conf <<'EOF'
#
# LDAP Defaults
#

# See ldap.conf(5) for details
# This file should be world readable but not world writable.

BASE   dc=dev,dc=shahed,dc=biz
URI    ldap://localhost ldap://localhost:666

#SIZELIMIT      12
#TIMELIMIT      15
#DEREF          never

# TLS certificates (needed for GnuTLS)
TLS_CACERT      /etc/ssl/certs/ca-certificates.crt
EOF

phpLDAPadmin

apt install phpldapadmin
a2enmod proxy_fcgi setenvif
a2enconf php7.3-fpm

References