Line 169: |
Line 169: |
| | | |
| httpd | | httpd |
| + | |
| email | | email |
| + | |
| smbd | | smbd |
| + | |
| mysql (already listens for tcp6/3313) | | mysql (already listens for tcp6/3313) |
| + | |
| ntpd (already listens on udp6/123) | | ntpd (already listens on udp6/123) |
| + | |
| sshd as below | | sshd as below |
| + | |
| + | ldap as below |
| | | |
| SSH (bad hack here so careful as this may open your server up to remote access) | | SSH (bad hack here so careful as this may open your server up to remote access) |
Line 199: |
Line 206: |
| ssh root@2001:470:1f13:3ff:2a9:b700:fe99:792c | | ssh root@2001:470:1f13:3ff:2a9:b700:fe99:792c |
| | | |
| + | LDAP |
| + | |
| + | mkdir -p /etc/e-smith/templates-custom/etc/sysconfig/slapd |
| + | |
| + | nano /etc/e-smith/templates-custom/etc/sysconfig/slapd/40OPTIONS |
| + | |
| + | |
| + | |
| + | { |
| + | |
| + | { |
| + | |
| + | # Any custom options |
| + | |
| + | #SLAPD_OPTIONS=" -4 -d { $ldap{LogLevel} || 256 } -s 0 " |
| + | |
| + | my $slapdOptions = "#Test"; |
| + | |
| + | my $logLevel = $ldap{LogLevel} || 256; |
| + | |
| + | if ($IPv6{'status'} eq "enabled") { |
| + | |
| + | $slapdOptions = "SLAPD_OPTIONS=\"-d $logLevel -s 0\" " ; |
| + | |
| + | } else { |
| + | |
| + | $slapdOptions = "SLAPD_OPTIONS=\"-4 -d $logLevel -s 0\" " ; |
| + | |
| + | } |
| + | |
| + | $OUT .= "# Any custom options\n"; |
| + | |
| + | $OUT .= "$slapdOptions\n"; |
| + | |
| + | } |
| + | |
| + | |
| + | |
| + | Edited the unit file /usr/lib/systemd/system/ldap.service to comment out the Environment line and just leave the config file |
| + | <code>#Environment="SLAPD_URLS=ldap:/// ldaps:/// ldapi:///" "SLAPD_OPTIONS=-4 -d 256 -s 0" |
| + | EnvironmentFile=/etc/sysconfig/slapd</code> |
| + | systemctl daemon-reload |
| + | |
| + | systemctl restart ldap.service |
| | | |
| ===Other notes=== | | ===Other notes=== |