This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| openldap_centos7 [2015/06/24 12:02] – herwarth | openldap_centos7 [2015/06/25 08:22] (current) – [Preparation] herwarth | ||
|---|---|---|---|
| Line 4: | Line 4: | ||
| * Install chronyd and configure timeserver | * Install chronyd and configure timeserver | ||
| * Install initial firewall rules | * Install initial firewall rules | ||
| + | * Download my superscript {{: | ||
| =====Installation===== | =====Installation===== | ||
| Line 11: | Line 12: | ||
| Install my created superscript, | Install my created superscript, | ||
| cd /root | cd /root | ||
| - | tar -xvzf ldap-latest.tar.gz | + | tar -xvzf ldap-el7.tar.gz |
| cd ldap | cd ldap | ||
| ./ | ./ | ||
| Line 21: | Line 22: | ||
| ====phpldapadmin==== | ====phpldapadmin==== | ||
| - | yum install phpldapadmin | + | yum install phpldapadmin |
| =====Configuration===== | =====Configuration===== | ||
| Line 38: | Line 39: | ||
| firewall-cmd --permanent --zone=management --add-service=http | firewall-cmd --permanent --zone=management --add-service=http | ||
| + | firewall-cmd --permanent --zone=management --add-service=https | ||
| firewall-cmd --permanent --zone=local --add-service=http | firewall-cmd --permanent --zone=local --add-service=http | ||
| + | firewall-cmd --permanent --zone=local --add-service=https | ||
| < | < | ||
| systemctl enable httpd | systemctl enable httpd | ||
| Line 46: | Line 49: | ||
| firewall-cmd --reload | firewall-cmd --reload | ||
| </ | </ | ||
| + | =====Apache configuration===== | ||
| + | <code - etc/ | ||
| + | NameVirtualHost 172.16.2.27: | ||
| + | NameVirtualHost 172.16.2.27: | ||
| + | NameVirtualHost [2a02: | ||
| + | NameVirtualHost [2a02: | ||
| + | </ | ||
| + | <code - / | ||
| + | < | ||
| + | ServerAdmin webmaster@ldap.mngt.bh.helux.nl | ||
| + | ServerName ldap.mngt.bh.helux.nl | ||
| + | |||
| + | RewriteEngine on | ||
| + | RewriteRule ^/(.*)$ https:// | ||
| + | |||
| + | ErrorLog / | ||
| + | CustomLog / | ||
| + | </ | ||
| + | |||
| + | < | ||
| + | ServerAdmin webmaster@ldap.mngt.bh.helux.nl | ||
| + | ServerName ldap.mngt.bh.helux.nl | ||
| + | |||
| + | DocumentRoot / | ||
| + | < | ||
| + | Require all granted | ||
| + | </ | ||
| + | |||
| + | SSLEngine On | ||
| + | SSLCertificateFile | ||
| + | SSLCertificateKeyFile / | ||
| + | |||
| + | ErrorLog / | ||
| + | CustomLog / | ||
| + | </ | ||
| + | </ | ||
| + | =====Notes===== | ||
| + | * Problem: When creating a Samba user with phpldapadmin, | ||
| + | * Solution: add attribute " | ||
| + | |||
| {{tag> | {{tag> | ||