From b75c7f084f47af99e95f3b5e3487a4c2a40a85ab Mon Sep 17 00:00:00 2001 From: Jan Lindemann Date: Sun, 19 Jun 2011 10:31:24 +0000 Subject: [PATCH] integrate-distro.sh: Add generation of /etc/openldap/ldap.conf --- scripts/integrate-distro.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/scripts/integrate-distro.sh b/scripts/integrate-distro.sh index 16a05c57..a4b739bc 100644 --- a/scripts/integrate-distro.sh +++ b/scripts/integrate-distro.sh @@ -32,6 +32,7 @@ payload_pkgs=" splashy kbd + sensors db-utils @@ -406,6 +407,14 @@ make_etc_hosts() EOT } +make_etc_openldap_ldap_conf() +{ + _cat << EOT + TLS_CACERT /etc/certs/root-ca-1.pem + TLS_REQCERT allow +EOT +} + make_netboot_etc_hosts() { cat /etc/hosts @@ -639,6 +648,9 @@ cmd_install() make_netboot_etc_openldap_ldap_conf > $root/etc/openldap/ldap.conf.netboot make_netboot_etc_hosts > $root/etc/hosts.netboot + make_etc_openldap_ldap_conf > $root/etc/openldap/ldap.conf + chmod 644 $root/etc/openldap/ldap.conf + make_etc_hosts > $root/etc/hosts make_etc_fstab > $root/etc/fstab